target/arm: Plumb FEAT_RPRES frecpe and frsqrte through to new helper
authorPeter Maydell <peter.maydell@linaro.org>
Sat, 1 Feb 2025 16:39:56 +0000 (16:39 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 11 Feb 2025 16:22:07 +0000 (16:22 +0000)
commit0ff5c021f04d7dbaec174451e7a0dab3822b1b0d
tree019d49228dc730c77d915644a8d5e8679f744275
parentd38a57a3f1ea66c4338a10d70c032741e8786c51
target/arm: Plumb FEAT_RPRES frecpe and frsqrte through to new helper

FEAT_RPRES implements an "increased precision" variant of the single
precision FRECPE and FRSQRTE instructions from an 8 bit to a 12
bit mantissa. This applies only when FPCR.AH == 1. Note that the
halfprec and double versions of these insns retain the 8 bit
precision regardless.

In this commit we add all the plumbing to make these instructions
call a new helper function when the increased-precision is in
effect. In the following commit we will provide the actual change
in behaviour in the helpers.

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