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-sve.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-sve.c')
-rw-r--r-- | target/arm/translate-sve.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 6f02030635..4f575dc334 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -8677,3 +8677,15 @@ static bool trans_BFDOT_zzxz(DisasContext *s, arg_rrxr_esz *a) } return true; } + +static bool trans_BFMMLA(DisasContext *s, arg_rrrr_esz *a) +{ + if (!dc_isar_feature(aa64_sve_bf16, s)) { + return false; + } + if (sve_access_check(s)) { + gen_gvec_ool_zzzz(s, gen_helper_gvec_bfmmla, + a->rd, a->rn, a->rm, a->ra, 0); + } + return true; +} |