[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v2 21/30] Hexagon HVX (target/hexagon) helper overrides - vector s
From: |
Taylor Simpson |
Subject: |
[PULL v2 21/30] Hexagon HVX (target/hexagon) helper overrides - vector splat and abs |
Date: |
Wed, 3 Nov 2021 16:17:18 -0500 |
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Taylor Simpson <tsimpson@quicinc.com>
---
target/hexagon/gen_tcg_hvx.h | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/target/hexagon/gen_tcg_hvx.h b/target/hexagon/gen_tcg_hvx.h
index 32f8e20..435c7b5 100644
--- a/target/hexagon/gen_tcg_hvx.h
+++ b/target/hexagon/gen_tcg_hvx.h
@@ -506,4 +506,30 @@ static inline void assert_vhist_tmp(DisasContext *ctx)
#define fGEN_TCG_V6_veqb_xor(SHORTCODE) \
fGEN_TCG_VEC_CMP_OP(TCG_COND_EQ, MO_8, 1, tcg_gen_gvec_xor)
+/* Vector splat - various forms */
+#define fGEN_TCG_V6_lvsplatw(SHORTCODE) \
+ tcg_gen_gvec_dup_i32(MO_32, VdV_off, \
+ sizeof(MMVector), sizeof(MMVector), RtV)
+
+#define fGEN_TCG_V6_lvsplath(SHORTCODE) \
+ tcg_gen_gvec_dup_i32(MO_16, VdV_off, \
+ sizeof(MMVector), sizeof(MMVector), RtV)
+
+#define fGEN_TCG_V6_lvsplatb(SHORTCODE) \
+ tcg_gen_gvec_dup_i32(MO_8, VdV_off, \
+ sizeof(MMVector), sizeof(MMVector), RtV)
+
+/* Vector absolute value - various forms */
+#define fGEN_TCG_V6_vabsb(SHORTCODE) \
+ tcg_gen_gvec_abs(MO_8, VdV_off, VuV_off, \
+ sizeof(MMVector), sizeof(MMVector))
+
+#define fGEN_TCG_V6_vabsh(SHORTCODE) \
+ tcg_gen_gvec_abs(MO_16, VdV_off, VuV_off, \
+ sizeof(MMVector), sizeof(MMVector))
+
+#define fGEN_TCG_V6_vabsw(SHORTCODE) \
+ tcg_gen_gvec_abs(MO_32, VdV_off, VuV_off, \
+ sizeof(MMVector), sizeof(MMVector))
+
#endif
--
2.7.4
- [PULL v2 12/30] Hexagon HVX (target/hexagon) TCG generation, (continued)
- [PULL v2 12/30] Hexagon HVX (target/hexagon) TCG generation, Taylor Simpson, 2021/11/03
- [PULL v2 16/30] Hexagon HVX (target/hexagon) helper overrides - vector add & sub, Taylor Simpson, 2021/11/03
- [PULL v2 10/30] Hexagon HVX (target/hexagon) instruction utility functions, Taylor Simpson, 2021/11/03
- [PULL v2 27/30] Hexagon HVX (tests/tcg/hexagon) vector_add_int test, Taylor Simpson, 2021/11/03
- [PULL v2 18/30] Hexagon HVX (target/hexagon) helper overrides - vector max/min, Taylor Simpson, 2021/11/03
- [PULL v2 06/30] Hexagon HVX (target/hexagon) import macro definitions, Taylor Simpson, 2021/11/03
- [PULL v2 20/30] Hexagon HVX (target/hexagon) helper overrides - vector compares, Taylor Simpson, 2021/11/03
- [PULL v2 15/30] Hexagon HVX (target/hexagon) helper overrides - vector assign & cmov, Taylor Simpson, 2021/11/03
- [PULL v2 08/30] Hexagon HVX (target/hexagon) semantics generator - part 2, Taylor Simpson, 2021/11/03
- [PULL v2 07/30] Hexagon HVX (target/hexagon) semantics generator, Taylor Simpson, 2021/11/03
- [PULL v2 21/30] Hexagon HVX (target/hexagon) helper overrides - vector splat and abs,
Taylor Simpson <=
- [PULL v2 17/30] Hexagon HVX (target/hexagon) helper overrides - vector shifts, Taylor Simpson, 2021/11/03
- [PULL v2 14/30] Hexagon HVX (target/hexagon) helper overrides for histogram instructions, Taylor Simpson, 2021/11/03
- [PULL v2 23/30] Hexagon HVX (target/hexagon) helper overrides - vector stores, Taylor Simpson, 2021/11/03
- [PULL v2 29/30] Hexagon HVX (tests/tcg/hexagon) scatter_gather test, Taylor Simpson, 2021/11/03
- [PULL v2 24/30] Hexagon HVX (target/hexagon) import semantics, Taylor Simpson, 2021/11/03
- [PULL v2 28/30] Hexagon HVX (tests/tcg/hexagon) hvx_misc test, Taylor Simpson, 2021/11/03
- [PULL v2 22/30] Hexagon HVX (target/hexagon) helper overrides - vector loads, Taylor Simpson, 2021/11/03
- [PULL v2 25/30] Hexagon HVX (target/hexagon) instruction decoding, Taylor Simpson, 2021/11/03
- [PULL v2 26/30] Hexagon HVX (target/hexagon) import instruction encodings, Taylor Simpson, 2021/11/03
- [PULL v2 13/30] Hexagon HVX (target/hexagon) helper overrides infrastructure, Taylor Simpson, 2021/11/03