[llvm] [X86][MC] Add alias for `{evex} cmp` and `{evex} test`. (PR #99277)

Freddy Ye via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 21 18:18:47 PDT 2024


================
@@ -3784,6 +3795,66 @@ bool X86AsmParser::processInstruction(MCInst &Inst, const OperandVector &Ops) {
     Inst.setOpcode(X86::INT3);
     return true;
   }
+#define FROM_TO(FROM, TO)                                                      \
+  case X86::FROM: {                                                            \
+    if (ForcedOpcodePrefix == OpcodePrefix_EVEX_CMP_TEST) {                    \
+      Inst.setOpcode(X86::TO);                                                 \
+      Inst.addOperand(MCOperand::createImm(15));                               \
+      Inst.addOperand(MCOperand::createImm(10));                               \
----------------
FreddyLeaf wrote:

2dd7c4a

https://github.com/llvm/llvm-project/pull/99277


More information about the llvm-commits mailing list