[llvm-commits] [llvm] r113867 - /llvm/trunk/lib/Target/ARM/ARMInstrThumb.td

Gabor Greif ggreif at gmail.com
Tue Sep 14 15:00:50 PDT 2010


Author: ggreif
Date: Tue Sep 14 17:00:50 2010
New Revision: 113867

URL: http://llvm.org/viewvc/llvm-project?rev=113867&view=rev
Log:
set isCompare for another three Thumb1 instructions

Modified:
    llvm/trunk/lib/Target/ARM/ARMInstrThumb.td

Modified: llvm/trunk/lib/Target/ARM/ARMInstrThumb.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstrThumb.td?rev=113867&r1=113866&r2=113867&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMInstrThumb.td (original)
+++ llvm/trunk/lib/Target/ARM/ARMInstrThumb.td Tue Sep 14 17:00:50 2010
@@ -630,7 +630,7 @@
            T1DataProcessing<0b1110>;
 
 // CMN register
-let Defs = [CPSR] in {
+let isCompare = 1, Defs = [CPSR] in {
 //FIXME: Disable CMN, as CCodes are backwards from compare expectations
 //       Compare-to-zero still works out, just not the relationals
 //def tCMN : T1pI<(outs), (ins tGPR:$lhs, tGPR:$rhs), IIC_iCMPr,
@@ -644,7 +644,7 @@
 }
 
 // CMP immediate
-let Defs = [CPSR] in {
+let isCompare = 1, Defs = [CPSR] in {
 def tCMPi8 : T1pI<(outs), (ins tGPR:$lhs, i32imm:$rhs), IIC_iCMPi,
                   "cmp", "\t$lhs, $rhs",
                   [(ARMcmp tGPR:$lhs, imm0_255:$rhs)]>,





More information about the llvm-commits mailing list