Skip to content

Commit 59abfb4

Browse files
committed
target/hexagon: Simplify internal_mpyhh setup
Initialize x with accumulated via direct assignment, rather than multiplying by 1. Reviewed-by: Brian Cain <[email protected]> Signed-off-by: Richard Henderson <[email protected]>
1 parent 65b4dce commit 59abfb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

target/hexagon/fma_emu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ float64 internal_mpyhh(float64 a, float64 b,
455455
float64_is_infinity(b)) {
456456
return float64_mul(a, b, fp_status);
457457
}
458-
x.mant = int128_mul_6464(accumulated, 1);
458+
x.mant = int128_make64(accumulated);
459459
x.sticky = sticky;
460460
prod = fGETUWORD(1, float64_getmant(a)) * fGETUWORD(1, float64_getmant(b));
461461
x.mant = int128_add(x.mant, int128_mul_6464(prod, 0x100000000ULL));

0 commit comments

Comments
 (0)