Match pattern operand names to expected encoding field names. This corrects the
authorJim Grosbach <grosbach@apple.com>
Fri, 3 Dec 2010 23:21:25 +0000 (23:21 +0000)
committerJim Grosbach <grosbach@apple.com>
Fri, 3 Dec 2010 23:21:25 +0000 (23:21 +0000)
operand encoding ordering of the instruction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120852 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMInstrThumb.td

index d045191c9297962bf7d9ee0f3cb3bc93266d1971..76c8c763f830e30782708b390e1cf7db1c106a6d 100644 (file)
@@ -931,8 +931,8 @@ def tCMPhir : T1pI<(outs), (ins GPR:$Rn, GPR:$Rm), IIC_iCMPr,
   let Inst{6-3} = Rm;
   let Inst{2-0} = Rn{2-0};
 }
-def tCMPzhir : T1pI<(outs), (ins GPR:$lhs, GPR:$rhs), IIC_iCMPr,
-                    "cmp", "\t$lhs, $rhs", []>,
+def tCMPzhir : T1pI<(outs), (ins GPR:$Rn, GPR:$Rm), IIC_iCMPr,
+                    "cmp", "\t$Rn, $Rm", []>,
                T1Special<{0,1,?,?}> {
   // A8.6.36 T2
   bits<4> Rm;