target/arm: Handle FPCR.NEP for FCVTXN (scalar)
authorPeter Maydell <peter.maydell@linaro.org>
Sat, 1 Feb 2025 16:39:25 +0000 (16:39 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 11 Feb 2025 16:22:07 +0000 (16:22 +0000)
commit555639065d5b5310e8e67af383539309784d37dd
tree237cdc0c0fc512513631cdb94dc250ae998431f4
parent64339259a9c2c5d504ea5179fc42091e3e4a7b22
target/arm: Handle FPCR.NEP for FCVTXN (scalar)

Unlike the other users of do_2misc_narrow_scalar(), FCVTXN (scalar)
is always double-to-single and must honour FPCR.NEP.  Implement this
directly in a trans function rather than using
do_2misc_narrow_scalar().

We still need gen_fcvtxn_sd() and the f_scalar_fcvtxn[] array for
the FCVTXN (vector) insn, so we move those down in the file to
where they are used.

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