qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v1 06/11] target/arm: Implement bfloat16 dot product (vector)


From: Richard Henderson
Subject: Re: [PATCH v1 06/11] target/arm: Implement bfloat16 dot product (vector)
Date: Tue, 18 May 2021 09:27:50 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

On 5/18/21 7:15 AM, Peter Maydell wrote:
On Sat, 17 Apr 2021 at 01:02, Richard Henderson
<richard.henderson@linaro.org> wrote:

This is BFDOT for both AArch64 AdvSIMD and SVE,
and VDOT.BF16 for AArch32 NEON.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

@@ -12326,6 +12336,16 @@ static void 
disas_simd_three_reg_same_extra(DisasContext *s, uint32_t insn)
          }
          return;

+    case 0xf: /* BFDOT */
+        switch (size) {
+        case 1:
+            gen_gvec_op4_ool(s, is_q, rd, rn, rm, rd, 0, 
gen_helper_gvec_bfdot);
+            break;
+        default:
+            g_assert_not_reached();
+        }
+        return;

The switch on size here seems unnecessary to me given we've already
decoded size earlier in the function.

Size is opcode here, and the switch gains extra members as we continue. I'm beginning the form we need to continue with.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]