]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: Use FPST_FPCR_AH for BFMLAL*, BFMLSL* insns
authorPeter Maydell <peter.maydell@linaro.org>
Sat, 1 Feb 2025 16:39:17 +0000 (16:39 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 11 Feb 2025 16:22:07 +0000 (16:22 +0000)
commit8a5a2b943e6a96487d5cf000b39aff8a4faf0821
tree0d52dbcd8b17eba1e53a8084dafb5eb9a0bc23d4
parentb6295046e6b4bc5cb070df702ddb10e3672ac6ff
target/arm: Use FPST_FPCR_AH for BFMLAL*, BFMLSL* insns

When FPCR.AH is 1, use FPST_FPCR_AH for:
 * AdvSIMD BFMLALB, BFMLALT
 * SVE BFMLALB, BFMLALT, BFMLSLB, BFMLSLT

so that they get the required behaviour changes.

We do this by making gen_gvec_op4_fpst() take an ARMFPStatusFlavour
rather than a bool is_fp16; existing callsites now select
FPST_FPCR_F16_A64 vs FPST_FPCR_A64 themselves rather than passing in
the boolean.

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