Skip to content

Commit d3cd1ce

Browse files
authored
[X86] Add lowering tests for promoted CMPCCXADD and update CC representation (#78685)
#76125 supported the enc/dec for CMPCCXADD instructions, this patch 1. Add lowering test for promoted CMPCCXADD 2. Update the representation of condition code for promoted CMPCCXADD to align with the existing one
1 parent 71dbefa commit d3cd1ce

File tree

5 files changed

+316
-121
lines changed

5 files changed

+316
-121
lines changed

llvm/lib/Target/X86/MCTargetDesc/X86InstPrinterCommon.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ void X86InstPrinterCommon::printCondCode(const MCInst *MI, unsigned Op,
3030
raw_ostream &O) {
3131
int64_t Imm = MI->getOperand(Op).getImm();
3232
bool Flavor = MI->getOpcode() == X86::CMPCCXADDmr32 ||
33-
MI->getOpcode() == X86::CMPCCXADDmr64;
33+
MI->getOpcode() == X86::CMPCCXADDmr64 ||
34+
MI->getOpcode() == X86::CMPCCXADDmr32_EVEX ||
35+
MI->getOpcode() == X86::CMPCCXADDmr64_EVEX;
3436
switch (Imm) {
3537
default: llvm_unreachable("Invalid condcode argument!");
3638
case 0: O << "o"; break;

0 commit comments

Comments
 (0)