[clang] [compiler-rt] [llvm] [X86][AVX10.2] Support AVX10.2 option and VMPSADBW/VADDP[D,H,S] new instructions (PR #101452)
Shengchen Kan via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 31 23:42:16 PDT 2024
================
@@ -1219,6 +1219,9 @@ static int getInstructionID(struct InternalInstruction *insn,
attrMask |= ATTR_EVEXKZ;
if (bFromEVEX4of4(insn->vectorExtensionPrefix[3]))
attrMask |= ATTR_EVEXB;
+ if (x2FromEVEX3of4(insn->vectorExtensionPrefix[2]) &&
+ (insn->opcodeType != MAP4))
----------------
KanRobert wrote:
I think you also need to check more things for this, e.g. `EVEX.b`. Since the APX SPEC says
> When any of the bits in EVEX.{R4,X4,B4} is not used by a promoted VEX instruction, it is ignored,
@FreddyLeaf is working on adding tests for the ignore semantic while it's not ready yet.
https://github.com/llvm/llvm-project/pull/101452
More information about the llvm-commits
mailing list