Skip to content

Commit d47572d

Browse files
committed
Fix a bug spotted in the review
1 parent 028bd14 commit d47572d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/Sparc/SparcInstrInfo.td

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ def calltarget : Operand<i32> {
222222
}
223223

224224
def simm13Op : Operand<iPTR> {
225+
let OperandType = "OPERAND_IMMEDIATE";
225226
let DecoderMethod = "DecodeSIMM13";
226227
let EncoderMethod = "getSImm13OpValue";
227228
}
@@ -835,7 +836,7 @@ let Defs = [ICC], hasPostISelHook = true in
835836
let Uses = [ICC] in
836837
defm SUBC : F3_12np <"subx", 0b001100>;
837838

838-
def : Pat<(SPcmpicc i32:$lhs, i32:$rhs), (SUBCCri $lhs, $rhs)>;
839+
def : Pat<(SPcmpicc i32:$lhs, i32:$rhs), (SUBCCrr $lhs, $rhs)>;
839840
def : Pat<(SPcmpicc i32:$lhs, (i32 simm13:$rhs)), (SUBCCri $lhs, imm:$rhs)>;
840841

841842
// Section B.18 - Multiply Instructions, p. 113

0 commit comments

Comments
 (0)