tst is also commutable.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 26 Jun 2009 00:19:07 +0000 (00:19 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 26 Jun 2009 00:19:07 +0000 (00:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74236 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMInstrThumb.td

index a4cafef0215c7b63953e2425385e3b5f05bb9953..4968b4a097903b9c7f436ad870fe5d54a615629b 100644 (file)
@@ -548,7 +548,7 @@ def tSXTH  : T1I<(outs tGPR:$dst), (ins tGPR:$src),
                 Requires<[IsThumb, HasV6]>;
 
 // test
-let Defs = [CPSR] in
+let isCommutable = 1, Defs = [CPSR] in
 def tTST  : T1I<(outs), (ins tGPR:$lhs, tGPR:$rhs),
                "tst $lhs, $rhs",
                [(ARMcmpNZ (and tGPR:$lhs, tGPR:$rhs), 0)]>;