From: Evan Cheng Date: Fri, 26 Jun 2009 00:19:07 +0000 (+0000) Subject: tst is also commutable. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e864b74e959c3d1135e02bbb0fc13fbea04601c3;p=oota-llvm.git tst is also commutable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74236 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMInstrThumb.td b/lib/Target/ARM/ARMInstrThumb.td index a4cafef0215..4968b4a0979 100644 --- a/lib/Target/ARM/ARMInstrThumb.td +++ b/lib/Target/ARM/ARMInstrThumb.td @@ -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)]>;