From: Akira Hatanaka Date: Tue, 11 Oct 2011 20:44:43 +0000 (+0000) Subject: Use sltiu instead of sltu when a register operand and immediate are compared. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b07a3d68972039426a87f1cac82e348e3bb1877b;p=oota-llvm.git Use sltiu instead of sltu when a register operand and immediate are compared. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141708 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Mips/Mips64InstrInfo.td b/lib/Target/Mips/Mips64InstrInfo.td index 8c8bc76e4b5..495b969ddcc 100644 --- a/lib/Target/Mips/Mips64InstrInfo.td +++ b/lib/Target/Mips/Mips64InstrInfo.td @@ -242,7 +242,7 @@ defm : BrcondPats; + (SLTiu64 (DXOR CPU64Regs:$lhs, CPU64Regs:$rhs), 1)>; def : Pat<(setne CPU64Regs:$lhs, CPU64Regs:$rhs), (SLTu64 ZERO_64, (DXOR CPU64Regs:$lhs, CPU64Regs:$rhs))>; diff --git a/lib/Target/Mips/MipsInstrInfo.td b/lib/Target/Mips/MipsInstrInfo.td index 9b07082a422..2c1893044b0 100644 --- a/lib/Target/Mips/MipsInstrInfo.td +++ b/lib/Target/Mips/MipsInstrInfo.td @@ -954,7 +954,7 @@ defm : MovnPats; // setcc patterns def : Pat<(seteq CPURegs:$lhs, CPURegs:$rhs), - (SLTu (XOR CPURegs:$lhs, CPURegs:$rhs), 1)>; + (SLTiu (XOR CPURegs:$lhs, CPURegs:$rhs), 1)>; def : Pat<(setne CPURegs:$lhs, CPURegs:$rhs), (SLTu ZERO, (XOR CPURegs:$lhs, CPURegs:$rhs))>;