Fix NEG alias
authorJim Grosbach <grosbach@apple.com>
Fri, 19 Aug 2011 22:30:58 +0000 (22:30 +0000)
committerJim Grosbach <grosbach@apple.com>
Fri, 19 Aug 2011 22:30:58 +0000 (22:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138125 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMInstrThumb.td

index 8da7be05d4094689e76b073469288b74a48f1d4d..197afeb11fd54c452dd5047d8ef235f1edc32caa 100644 (file)
@@ -1115,7 +1115,7 @@ def tRSB :                      // A8.6.141
                [(set tGPR:$Rd, (ineg tGPR:$Rn))]>;
 
 def : InstAlias<"neg${s}${p} $Rd, $Rm",
-                (tRSB tGPR:$Rd, CPSR, tGPR:$Rm, pred:$p)>,
+                (tRSB tGPR:$Rd, s_cc_out:$s, tGPR:$Rm, pred:$p)>,
         Requires<[IsThumb]>;
 
 // Subtract with carry register