diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2021-05-24 18:03:56 -0700 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2021-05-25 16:01:44 +0100 |
commit | 2323c5ffd4b5c705e768c2f457bc3298a46bf856 (patch) | |
tree | e3f714543b4c59c2a85a4daec814c2e52966897a /target/arm/translate-neon.c | |
parent | 51879c671b7b0bf513cac6a5386097c8cfd17b3c (diff) | |
download | qemu-2323c5ffd4b5c705e768c2f457bc3298a46bf856.zip qemu-2323c5ffd4b5c705e768c2f457bc3298a46bf856.tar.gz qemu-2323c5ffd4b5c705e768c2f457bc3298a46bf856.tar.bz2 |
target/arm: Implement integer matrix multiply accumulate
This is {S,U,US}MMLA for both AArch64 AdvSIMD and SVE,
and V{S,U,US}MMLA.S8 for AArch32 NEON.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210525010358.152808-91-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/translate-neon.c')
-rw-r--r-- | target/arm/translate-neon.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/target/arm/translate-neon.c b/target/arm/translate-neon.c index b6ca29c..9e990b4 100644 --- a/target/arm/translate-neon.c +++ b/target/arm/translate-neon.c @@ -4036,3 +4036,30 @@ static bool trans_VTRN(DisasContext *s, arg_2misc *a) tcg_temp_free_i32(tmp2); return true; } + +static bool trans_VSMMLA(DisasContext *s, arg_VSMMLA *a) +{ + if (!dc_isar_feature(aa32_i8mm, s)) { + return false; + } + return do_neon_ddda(s, 7, a->vd, a->vn, a->vm, 0, + gen_helper_gvec_smmla_b); +} + +static bool trans_VUMMLA(DisasContext *s, arg_VUMMLA *a) +{ + if (!dc_isar_feature(aa32_i8mm, s)) { + return false; + } + return do_neon_ddda(s, 7, a->vd, a->vn, a->vm, 0, + gen_helper_gvec_ummla_b); +} + +static bool trans_VUSMMLA(DisasContext *s, arg_VUSMMLA *a) +{ + if (!dc_isar_feature(aa32_i8mm, s)) { + return false; + } + return do_neon_ddda(s, 7, a->vd, a->vn, a->vm, 0, + gen_helper_gvec_usmmla_b); +} |