]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: Handle FPCR.AH in FMLSL (by element and vector)
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 1 Feb 2025 16:39:52 +0000 (16:39 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 11 Feb 2025 16:22:07 +0000 (16:22 +0000)
commit0fa4b7afd4f78ed6ec0dedffba7dc93c00ca3d83
tree2158360e1b3dc9568f5b4065d84cc857b760b8e3
parent0b5ca769cfae0039d6a71a4dd2d28845f96c4b81
target/arm: Handle FPCR.AH in FMLSL (by element and vector)

Handle FPCR.AH's requirement to not negate the sign of a NaN
in FMLSL by element and vector, using the usual trick of
negating by XOR when AH=0 and by muladd flags when AH=1.

Since we have the CPUARMState* in the helper anyway, we can
look directly at env->vfp.fpcr and don't need toa pass in the
FPCR.AH value via the SIMD data word.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20250129013857.135256-31-richard.henderson@linaro.org
[PMM: commit message tweaked]
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/tcg/vec_helper.c