tst is also commutable.

llvm-svn: 74236
This commit is contained in:
Evan Cheng 2009-06-26 00:19:07 +00:00
parent b99db00b64
commit 9643ba8123
1 changed files with 1 additions and 1 deletions

View 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)]>;