]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: Handle FPCR.AH in negation in FMLS (vector)
authorPeter Maydell <peter.maydell@linaro.org>
Sat, 1 Feb 2025 16:39:45 +0000 (16:39 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 11 Feb 2025 16:22:07 +0000 (16:22 +0000)
commit1fae4f5e9f48f1620c20f33eb1c673276a301548
treeb35e4a6891ec0b09d26112dc5abbccd84f7eee89
parentb85d8684c5f6be7d52355e1c8fc7444ee46a8237
target/arm: Handle FPCR.AH in negation in FMLS (vector)

Handle the FPCR.AH "don't negate the sign of a NaN" semantics
in FMLS (vector), by implementing a new set of helpers for
the AH=1 case.

The float_muladd_negate_product flag produces the same result
as negating either of the multiplication operands, assuming
neither of the operands are NaNs.  But since FEAT_AFP does not
negate NaNs, this behaviour is exactly what we need.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
target/arm/helper.h
target/arm/tcg/translate-a64.c
target/arm/tcg/vec_helper.c