summaryrefslogtreecommitdiffstats
path: root/target/arm/vec_helper.c
diff options
context:
space:
mode:
authorPeter Maydell2020-08-28 20:33:50 +0200
committerPeter Maydell2020-09-01 12:45:25 +0200
commit23afcdd2511f2a3dc05bed650d27bd25cf9b2a3c (patch)
treea56504b2338d695ec38e54f5d0d9a194e60e8c7f /target/arm/vec_helper.c
parenttarget/arm: Implement fp16 for Neon VRINT-with-specified-rounding-mode (diff)
downloadqemu-23afcdd2511f2a3dc05bed650d27bd25cf9b2a3c.tar.gz
qemu-23afcdd2511f2a3dc05bed650d27bd25cf9b2a3c.tar.xz
qemu-23afcdd2511f2a3dc05bed650d27bd25cf9b2a3c.zip
target/arm: Implement fp16 for Neon VRINTX
Convert the Neon VRINTX insn to use gvec, and use this to implement fp16 support for it. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20200828183354.27913-42-peter.maydell@linaro.org
Diffstat (limited to 'target/arm/vec_helper.c')
-rw-r--r--target/arm/vec_helper.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/arm/vec_helper.c b/target/arm/vec_helper.c
index 7ddf1e791c..20f153b47a 100644
--- a/target/arm/vec_helper.c
+++ b/target/arm/vec_helper.c
@@ -750,6 +750,9 @@ DO_2OP(gvec_frsqrte_h, helper_rsqrte_f16, float16)
DO_2OP(gvec_frsqrte_s, helper_rsqrte_f32, float32)
DO_2OP(gvec_frsqrte_d, helper_rsqrte_f64, float64)
+DO_2OP(gvec_vrintx_h, float16_round_to_int, float16)
+DO_2OP(gvec_vrintx_s, float32_round_to_int, float32)
+
DO_2OP(gvec_sitos, helper_vfp_sitos, int32_t)
DO_2OP(gvec_uitos, helper_vfp_uitos, uint32_t)
DO_2OP(gvec_tosizs, helper_vfp_tosizs, float32)