From 9643ba8123ace3fd0744b1f0be868695ef96b46e Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Fri, 26 Jun 2009 00:19:07 +0000 Subject: [PATCH] tst is also commutable. llvm-svn: 74236 --- llvm/lib/Target/ARM/ARMInstrThumb.td | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/ARM/ARMInstrThumb.td b/llvm/lib/Target/ARM/ARMInstrThumb.td index a4cafef0215c..4968b4a09790 100644 --- a/llvm/lib/Target/ARM/ARMInstrThumb.td +++ b/llvm/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)]>;