diff options
author | Richard Henderson | 2021-05-26 00:58:13 +0200 |
---|---|---|
committer | Peter Maydell | 2021-06-03 17:43:26 +0200 |
commit | 81266a1f58bf557280c6f7ce3cad1ba8ed8a56f1 (patch) | |
tree | e5e56230ae43c544d8d05ba36c910289ff9d1c40 /target/arm/translate-neon.c | |
parent | target/arm: Implement bfloat16 dot product (indexed) (diff) | |
download | qemu-81266a1f58bf557280c6f7ce3cad1ba8ed8a56f1.tar.gz qemu-81266a1f58bf557280c6f7ce3cad1ba8ed8a56f1.tar.xz qemu-81266a1f58bf557280c6f7ce3cad1ba8ed8a56f1.zip |
target/arm: Implement bfloat16 matrix multiply accumulate
This is BFMMLA for both AArch64 AdvSIMD and SVE,
and VMMLA.BF16 for AArch32 NEON.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210525225817.400336-9-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 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/target/arm/translate-neon.c b/target/arm/translate-neon.c index 8099767792..9d227a1e13 100644 --- a/target/arm/translate-neon.c +++ b/target/arm/translate-neon.c @@ -4126,3 +4126,12 @@ static bool trans_VUSMMLA(DisasContext *s, arg_VUSMMLA *a) return do_neon_ddda(s, 7, a->vd, a->vn, a->vm, 0, gen_helper_gvec_usmmla_b); } + +static bool trans_VMMLA_b16(DisasContext *s, arg_VMMLA_b16 *a) +{ + if (!dc_isar_feature(aa32_bf16, s)) { + return false; + } + return do_neon_ddda(s, 7, a->vd, a->vn, a->vm, 0, + gen_helper_gvec_bfmmla); +} |