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

Handle the FPCR.AH "don't negate the sign of a NaN" semantics in FMLS
(indexed). We do this by creating 6 new helpers, which allow us to
do the negation either by XOR (for AH=0) or by muladd flags
(for AH=1).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
[PMM: Mostly from RTH's patch; error in index order into fns[][]
 fixed]
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
target/arm/helper.h
target/arm/tcg/translate-a64.c
target/arm/tcg/translate-sve.c
target/arm/tcg/vec_helper.c