[PATCH 3/6] target/hexagon: add GVec override for HVX vmpyih multiply

Brian Cain posted 6 patches 1 month, 1 week ago
Maintainers: Brian Cain <brian.cain@oss.qualcomm.com>, Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
[PATCH 3/6] target/hexagon: add GVec override for HVX vmpyih multiply
Posted by Brian Cain 1 month, 1 week ago
Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
---
 target/hexagon/gen_tcg_hvx.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/target/hexagon/gen_tcg_hvx.h b/target/hexagon/gen_tcg_hvx.h
index 43a0f358f00..f843fe4e2e1 100644
--- a/target/hexagon/gen_tcg_hvx.h
+++ b/target/hexagon/gen_tcg_hvx.h
@@ -327,6 +327,11 @@ static inline void assert_vhist_tmp(DisasContext *ctx)
 
 #define fGEN_TCG_V6_vsubuwsat_dv(SHORTCODE) \
     fGEN_TCG_PAIR_ADDSUB(ussub, MO_32, VddV_off, VuuV_off, VvvV_off)
+
+#define fGEN_TCG_V6_vmpyih(SHORTCODE) \
+    tcg_gen_gvec_mul(MO_16, VdV_off, VuV_off, VvV_off, \
+                     VECTOR_SIZE_BYTE, VECTOR_SIZE_BYTE)
+
 /* Vector shift right - various forms */
 #define fGEN_TCG_V6_vasrh(SHORTCODE) \
     do { \
-- 
2.34.1

Re: [PATCH 3/6] target/hexagon: add GVec override for HVX vmpyih multiply
Posted by Marco Liebel 1 month, 1 week ago
On Wed, Aug 5, 2026 at 11:52 AM Brian Cain <brian.cain@oss.qualcomm.com> wrote:
>
> Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
> ---
>  target/hexagon/gen_tcg_hvx.h | 5 +++++
>  1 file changed, 5 insertions(+)

Reviewed-by: Marco Liebel <marco.liebel@oss.qualcomm.com>