aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2024-12-08 16:15:30 -0600
committerRichard Henderson <richard.henderson@linaro.org>2024-12-24 08:32:15 -0800
commit59abfb444e1d9654e15f85c50d09a3366e4c1c1e (patch)
tree3309194cdf8a95d4a40d04ab5fb131f37fe7131f
parent65b4dce393cddb5fb0295bf6666f7db8512b8cff (diff)
downloadqemu-59abfb444e1d9654e15f85c50d09a3366e4c1c1e.zip
qemu-59abfb444e1d9654e15f85c50d09a3366e4c1c1e.tar.gz
qemu-59abfb444e1d9654e15f85c50d09a3366e4c1c1e.tar.bz2
target/hexagon: Simplify internal_mpyhh setup
Initialize x with accumulated via direct assignment, rather than multiplying by 1. Reviewed-by: Brian Cain <brian.cain@oss.qualcomm.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r--target/hexagon/fma_emu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/hexagon/fma_emu.c b/target/hexagon/fma_emu.c
index 07d2880..c557141 100644
--- a/target/hexagon/fma_emu.c
+++ b/target/hexagon/fma_emu.c
@@ -455,7 +455,7 @@ float64 internal_mpyhh(float64 a, float64 b,
float64_is_infinity(b)) {
return float64_mul(a, b, fp_status);
}
- x.mant = int128_mul_6464(accumulated, 1);
+ x.mant = int128_make64(accumulated);
x.sticky = sticky;
prod = fGETUWORD(1, float64_getmant(a)) * fGETUWORD(1, float64_getmant(b));
x.mant = int128_add(x.mant, int128_mul_6464(prod, 0x100000000ULL));