summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMInstrThumb2.td
diff options
context:
space:
mode:
authorDavid Goodwin <david_goodwin@apple.com>2009-06-29 22:49:42 +0000
committerDavid Goodwin <david_goodwin@apple.com>2009-06-29 22:49:42 +0000
commit76b37950ca9fc68f5813d4dbaddfe22dd1529dc3 (patch)
treebb6a0cca92cb1277827aeb3d61dac1450ea42d37 /llvm/lib/Target/ARM/ARMInstrThumb2.td
parent302ab13b1a71f6200d148bbf80cb7cbdc3ba6e3a (diff)
downloadbcm5719-llvm-76b37950ca9fc68f5813d4dbaddfe22dd1529dc3.tar.gz
bcm5719-llvm-76b37950ca9fc68f5813d4dbaddfe22dd1529dc3.zip
Add Thumb-2 support for TEQ amd TST.
llvm-svn: 74468
Diffstat (limited to 'llvm/lib/Target/ARM/ARMInstrThumb2.td')
-rw-r--r--llvm/lib/Target/ARM/ARMInstrThumb2.td5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrThumb2.td b/llvm/lib/Target/ARM/ARMInstrThumb2.td
index 6bcd4993672..7a56fd75970 100644
--- a/llvm/lib/Target/ARM/ARMInstrThumb2.td
+++ b/llvm/lib/Target/ARM/ARMInstrThumb2.td
@@ -621,7 +621,10 @@ def : T2Pat<(ARMcmp GPR:$src, t2_so_imm_neg:$imm),
def : T2Pat<(ARMcmpZ GPR:$src, t2_so_imm_neg:$imm),
(t2CMNri GPR:$src, t2_so_imm_neg:$imm)>;
-// FIXME: TST, TEQ, etc.
+defm t2TST : T2I_cmp_is<"tst",
+ BinOpFrag<(ARMcmpZ (and node:$LHS, node:$RHS), 0)>>;
+defm t2TEQ : T2I_cmp_is<"teq",
+ BinOpFrag<(ARMcmpZ (xor node:$LHS, node:$RHS), 0)>>;
// A8.6.27 CBNZ, CBZ - Compare and branch on (non)zero.
// Short range conditional branch. Looks awesome for loops. Need to figure
OpenPOWER on IntegriCloud