qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v1 07/11] target/arm: Implement bfloat16 dot product (indexed


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

On 5/18/21 7:24 AM, Peter Maydell wrote:
-    case 0x0f: /* SUDOT, USDOT */
-        gen_gvec_op4_ool(s, is_q, rd, rn, rm, rd, index,
-                         extract32(insn, 23, 1)
-                         ? gen_helper_gvec_usdot_idx_b
-                         : gen_helper_gvec_sudot_idx_b);
-        return;
-
+    case 0x0f:
+        switch (extract32(insn, 22, 2)) {

You already have bits [23:22] in 'size' at this point, I think.

Irritatingly not. For 0xf [23:22] is opcode, and size has been squashed to MO_32 in order to get the indexing correct in the middle of this function. It's just outside the patch context here. Later it will be moved inside a switch for BFMLAL.

One of the many ways in which decodetree would be better here.


r~



reply via email to

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