Skip to content

Commit cf4610d

Browse files
[PowerPC] Fix definitions of CMPRB8, CMPEQB, CMPRB, SETB in PPCInstr64Bit.td and PPCInstrInfo.td
1 parent 5885f1a commit cf4610d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

llvm/lib/Target/PowerPC/PPCInstr64Bit.td

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -703,11 +703,11 @@ let isCompare = 1, hasSideEffects = 0 in {
703703
"cmpldi $dst, $src1, $src2",
704704
IIC_IntCompare>, isPPC64;
705705
let Interpretation64Bit = 1, isCodeGenOnly = 1 in
706-
def CMPRB8 : X_BF3_L1_RS5_RS5<31, 192, (outs crbitrc:$BF),
706+
def CMPRB8 : X_BF3_L1_RS5_RS5<31, 192, (outs crrc:$BF),
707707
(ins u1imm:$L, g8rc:$rA, g8rc:$rB),
708708
"cmprb $BF, $L, $rA, $rB", IIC_IntCompare, []>,
709709
Requires<[IsISA3_0]>;
710-
def CMPEQB : X_BF3_RS5_RS5<31, 224, (outs crbitrc:$BF),
710+
def CMPEQB : X_BF3_RS5_RS5<31, 224, (outs crrc:$BF),
711711
(ins g8rc:$rA, g8rc:$rB), "cmpeqb $BF, $rA, $rB",
712712
IIC_IntCompare, []>, Requires<[IsISA3_0]>;
713713
}
@@ -835,8 +835,6 @@ def MADDLD : VAForm_1a<51, (outs gprc :$RT), (ins gprc:$RA, gprc:$RB, gprc:$RC),
835835
"maddld $RT, $RA, $RB, $RC", IIC_IntMulHD,
836836
[(set i32:$RT, (add_without_simm16 (mul_without_simm16 i32:$RA, i32:$RB), i32:$RC))]>,
837837
isPPC64;
838-
def SETB : XForm_44<31, 128, (outs gprc:$RT), (ins crrc:$BFA),
839-
"setb $RT, $BFA", IIC_IntGeneral>, isPPC64;
840838
let Interpretation64Bit = 1, isCodeGenOnly = 1 in {
841839
def MADDLD8 : VAForm_1a<51,
842840
(outs g8rc :$RT), (ins g8rc:$RA, g8rc:$RB, g8rc:$RC),

llvm/lib/Target/PowerPC/PPCInstrInfo.td

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2633,8 +2633,8 @@ let isCompare = 1, hasSideEffects = 0 in {
26332633
"cmpwi $crD, $rA, $imm", IIC_IntCompare>;
26342634
def CMPLWI : DForm_6_ext<10, (outs crrc:$dst), (ins gprc:$src1, u16imm:$src2),
26352635
"cmplwi $dst, $src1, $src2", IIC_IntCompare>;
2636-
def CMPRB : X_BF3_L1_RS5_RS5<31, 192, (outs crbitrc:$BF),
2637-
(ins u1imm:$L, g8rc:$rA, g8rc:$rB),
2636+
def CMPRB : X_BF3_L1_RS5_RS5<31, 192, (outs crrc:$BF),
2637+
(ins u1imm:$L, gprc:$rA, gprc:$rB),
26382638
"cmprb $BF, $L, $rA, $rB", IIC_IntCompare, []>,
26392639
Requires<[IsISA3_0]>;
26402640
}
@@ -5237,6 +5237,8 @@ def MSGSYNC : XForm_0<31, 886, (outs), (ins), "msgsync", IIC_SprMSGSYNC, []>;
52375237
// Power-Saving Mode Instruction:
52385238
def STOP : XForm_0<19, 370, (outs), (ins), "stop", IIC_SprSTOP, []>;
52395239

5240+
def SETB : XForm_44<31, 128, (outs gprc:$RT), (ins crrc:$BFA),
5241+
"setb $RT, $BFA", IIC_IntGeneral>;
52405242
} // IsISA3_0
52415243

52425244
// Fast 32-bit reverse bits algorithm:

0 commit comments

Comments
 (0)