mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
target/arm: Implement bfloat widening fma (vector)
This is BFMLAL{B,T} for both AArch64 AdvSIMD and SVE, and VFMA{B,T}.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-10-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
81266a1f58
commit
5693887f2e
7 changed files with 73 additions and 4 deletions
|
@ -12242,9 +12242,10 @@ static void disas_simd_three_reg_same_extra(DisasContext *s, uint32_t insn)
|
|||
}
|
||||
feature = dc_isar_feature(aa64_bf16, s);
|
||||
break;
|
||||
case 0x1f: /* BFDOT */
|
||||
case 0x1f:
|
||||
switch (size) {
|
||||
case 1:
|
||||
case 1: /* BFDOT */
|
||||
case 3: /* BFMLAL{B,T} */
|
||||
feature = dc_isar_feature(aa64_bf16, s);
|
||||
break;
|
||||
default:
|
||||
|
@ -12338,11 +12339,15 @@ static void disas_simd_three_reg_same_extra(DisasContext *s, uint32_t insn)
|
|||
case 0xd: /* BFMMLA */
|
||||
gen_gvec_op4_ool(s, is_q, rd, rn, rm, rd, 0, gen_helper_gvec_bfmmla);
|
||||
return;
|
||||
case 0xf: /* BFDOT */
|
||||
case 0xf:
|
||||
switch (size) {
|
||||
case 1:
|
||||
case 1: /* BFDOT */
|
||||
gen_gvec_op4_ool(s, is_q, rd, rn, rm, rd, 0, gen_helper_gvec_bfdot);
|
||||
break;
|
||||
case 3: /* BFMLAL{B,T} */
|
||||
gen_gvec_op4_fpst(s, 1, rd, rn, rm, rd, false, is_q,
|
||||
gen_helper_gvec_bfmlal);
|
||||
break;
|
||||
default:
|
||||
g_assert_not_reached();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue