mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
target/hppa: Set Float3NaNPropRule explicitly
Set the Float3NaNPropRule explicitly for HPPA, and remove the ifdef from pickNaNMulAdd(). HPPA is the only target that was using the default branch of the ifdef ladder (other targets either do not use muladd or set default_nan_mode), so we can remove the ifdef fallback entirely now (allowing the "rule not set" case to fall into the default of the switch statement and assert). We add a TODO note that the HPPA rule is probably wrong; this is not a behavioural change for this refactoring. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20241202131347.498124-26-peter.maydell@linaro.org
This commit is contained in:
parent
703990100a
commit
f8023791f2
2 changed files with 8 additions and 4 deletions
|
@ -504,10 +504,6 @@ static int pickNaNMulAdd(FloatClass a_cls, FloatClass b_cls, FloatClass c_cls,
|
|||
}
|
||||
}
|
||||
|
||||
if (rule == float_3nan_prop_none) {
|
||||
rule = float_3nan_prop_abc;
|
||||
}
|
||||
|
||||
assert(rule != float_3nan_prop_none);
|
||||
if (have_snan && (rule & R_3NAN_SNAN_MASK)) {
|
||||
/* We have at least one SNaN input and should prefer it */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue