mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
softfloat: Add float_muladd_suppress_add_product_zero
Certain Hexagon instructions suppress changes to the result when the product of fma() is a true zero. Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
72330260cd
commit
82f898f3b6
3 changed files with 11 additions and 1 deletions
|
@ -2274,6 +2274,9 @@ float32_muladd(float32 xa, float32 xb, float32 xc, int flags, float_status *s)
|
|||
if (unlikely(!can_use_fpu(s))) {
|
||||
goto soft;
|
||||
}
|
||||
if (unlikely(flags & float_muladd_suppress_add_product_zero)) {
|
||||
goto soft;
|
||||
}
|
||||
|
||||
float32_input_flush3(&ua.s, &ub.s, &uc.s, s);
|
||||
if (unlikely(!f32_is_zon3(ua, ub, uc))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue