[PATCH] x86: Short circuit ACE outer product table pass
Jan Beulich
jbeulich@suse.com
Wed Nov 25 08:54:53 GMT 2026
On 25.11.2026 03:51, Haochen Jiang wrote:
> All the ACE outer product instruction shares the same pattern (or
> you can say attributes): 64-bit, EVEX512, modrm.mod == 3 and W0.
The W0 part doesn't quite fit TOP1PD, so may want leaving out.
> @@ -9298,6 +9289,17 @@ get_valid_dis386 (const struct dis386 *dp, instr_info *ins)
> dp = &prefix_table[dp->op[1].bytemode][vindex];
> break;
>
> + case USE_X86_64_EVEX_PFX_ACE_TABLE:
I think USE_ACE_EVEX_PFX_TABLE would better fit in particular ...
> + /* ACE outer product instructions are 64-bit only and require that
> + EVEX.L'L must be 2, MODRM.MOD must be 3, EVEX.W must be 0. */
> + if (ins->address_mode != mode_64bit
> + || ins->vex.ll != 2
> + || ins->vex.w
> + || ins->modrm.mod != 3)
> + return &bad_opcode;
> +
> + goto use_prefix_table;
> +
> case USE_X86_64_EVEX_FROM_VEX_TABLE:
> case USE_X86_64_EVEX_PFX_TABLE:
> case USE_X86_64_EVEX_W_TABLE:
... the latter two of these. ACE also implies x86-64, so no need for
the redundant infix (or prefix for X86_64_EVEX_PFX_ACE_TABLE()).
Jan
More information about the Binutils
mailing list