mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-28 21:03:54 -06:00
softfloat: Remove float_muladd_halve_result
All uses have been convered to float*_muladd_scalbn. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
88d5f550bd
commit
6a243913aa
3 changed files with 0 additions and 13 deletions
|
@ -653,10 +653,6 @@ static FloatPartsN *partsN(muladd_scalbn)(FloatPartsN *a, FloatPartsN *b,
|
||||||
a->exp = p_widen.exp;
|
a->exp = p_widen.exp;
|
||||||
|
|
||||||
return_normal:
|
return_normal:
|
||||||
/* TODO: Replace all use of float_muladd_halve_result with scale. */
|
|
||||||
if (flags & float_muladd_halve_result) {
|
|
||||||
a->exp -= 1;
|
|
||||||
}
|
|
||||||
a->exp += scale;
|
a->exp += scale;
|
||||||
finish_sign:
|
finish_sign:
|
||||||
if (flags & float_muladd_negate_result) {
|
if (flags & float_muladd_negate_result) {
|
||||||
|
|
|
@ -2274,9 +2274,6 @@ float32_muladd(float32 xa, float32 xb, float32 xc, int flags, float_status *s)
|
||||||
if (unlikely(!can_use_fpu(s))) {
|
if (unlikely(!can_use_fpu(s))) {
|
||||||
goto soft;
|
goto soft;
|
||||||
}
|
}
|
||||||
if (unlikely(flags & float_muladd_halve_result)) {
|
|
||||||
goto soft;
|
|
||||||
}
|
|
||||||
|
|
||||||
float32_input_flush3(&ua.s, &ub.s, &uc.s, s);
|
float32_input_flush3(&ua.s, &ub.s, &uc.s, s);
|
||||||
if (unlikely(!f32_is_zon3(ua, ub, uc))) {
|
if (unlikely(!f32_is_zon3(ua, ub, uc))) {
|
||||||
|
@ -2345,9 +2342,6 @@ float64_muladd(float64 xa, float64 xb, float64 xc, int flags, float_status *s)
|
||||||
if (unlikely(!can_use_fpu(s))) {
|
if (unlikely(!can_use_fpu(s))) {
|
||||||
goto soft;
|
goto soft;
|
||||||
}
|
}
|
||||||
if (unlikely(flags & float_muladd_halve_result)) {
|
|
||||||
goto soft;
|
|
||||||
}
|
|
||||||
|
|
||||||
float64_input_flush3(&ua.s, &ub.s, &uc.s, s);
|
float64_input_flush3(&ua.s, &ub.s, &uc.s, s);
|
||||||
if (unlikely(!f64_is_zon3(ua, ub, uc))) {
|
if (unlikely(!f64_is_zon3(ua, ub, uc))) {
|
||||||
|
|
|
@ -120,14 +120,11 @@ bfloat16 bfloat16_squash_input_denormal(bfloat16 a, float_status *status);
|
||||||
| Using these differs from negating an input or output before calling
|
| Using these differs from negating an input or output before calling
|
||||||
| the muladd function in that this means that a NaN doesn't have its
|
| the muladd function in that this means that a NaN doesn't have its
|
||||||
| sign bit inverted before it is propagated.
|
| sign bit inverted before it is propagated.
|
||||||
| We also support halving the result before rounding, as a special
|
|
||||||
| case to support the ARM fused-sqrt-step instruction FRSQRTS.
|
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
enum {
|
enum {
|
||||||
float_muladd_negate_c = 1,
|
float_muladd_negate_c = 1,
|
||||||
float_muladd_negate_product = 2,
|
float_muladd_negate_product = 2,
|
||||||
float_muladd_negate_result = 4,
|
float_muladd_negate_result = 4,
|
||||||
float_muladd_halve_result = 8,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue