Skip to content

Commit cf10d7e

Browse files
Colin McEwanColin McEwan
authored andcommitted
NanoMips: Fix immZExt7Plus1 conditions
1 parent 3b00877 commit cf10d7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/Mips/NanoMipsInstrInfo.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def immZExt12Plus1 : PatLeaf<(imm), [{
4343
return isUInt<13>(N->getZExtValue()) && isUInt<12>(N->getZExtValue() + 1);
4444
}]>;
4545
def immZExt7Plus1 : PatLeaf<(imm), [{
46-
return isUInt<7>(N->getZExtValue()) && isUInt<12>(N->getZExtValue() + 1);
46+
return isUInt<8>(N->getZExtValue()) && isUInt<7>(N->getZExtValue() + 1);
4747
}]>;
4848
// Immediate range covering both signed 12-bit and unsigned 16-bit immediates.
4949
def imm32SExt12OrZExt16 : IntImmLeaf<i32, [{ return isInt<12>(Imm.getSExtValue())

0 commit comments

Comments
 (0)