summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-09-14 20:47:43 +0000
committerGabor Greif <ggreif@gmail.com>2010-09-14 20:47:43 +0000
commit2afac8e9bd99027cc2d4d917fd8f5d0ccfc0b98c (patch)
treec667e499c162ad98c43e5d9ccc9052615087f14b /llvm/lib
parentf08b36d386c7fbeb4fa71dc07fd0be6de85efd44 (diff)
downloadbcm5719-llvm-2afac8e9bd99027cc2d4d917fd8f5d0ccfc0b98c.tar.gz
bcm5719-llvm-2afac8e9bd99027cc2d4d917fd8f5d0ccfc0b98c.zip
set comparable for a bunch of Thumb instructions
llvm-svn: 113849
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/ARMInstrThumb.td4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrThumb.td b/llvm/lib/Target/ARM/ARMInstrThumb.td
index 30bec0f9d64..c9fcb24d076 100644
--- a/llvm/lib/Target/ARM/ARMInstrThumb.td
+++ b/llvm/lib/Target/ARM/ARMInstrThumb.td
@@ -656,7 +656,7 @@ def tCMPzi8 : T1pI<(outs), (ins tGPR:$lhs, i32imm:$rhs), IIC_iCMPi,
}
// CMP register
-let Defs = [CPSR] in {
+let isCompare = 1, Defs = [CPSR] in {
def tCMPr : T1pI<(outs), (ins tGPR:$lhs, tGPR:$rhs), IIC_iCMPr,
"cmp", "\t$lhs, $rhs",
[(ARMcmp tGPR:$lhs, tGPR:$rhs)]>,
@@ -837,7 +837,7 @@ def tSXTH : T1pI<(outs tGPR:$dst), (ins tGPR:$src), IIC_iUNAr,
T1Misc<{0,0,1,0,0,0,?}>;
// test
-let isCommutable = 1, Defs = [CPSR] in
+let isCompare = 1, isCommutable = 1, Defs = [CPSR] in
def tTST : T1pI<(outs), (ins tGPR:$lhs, tGPR:$rhs), IIC_iCMPr,
"tst", "\t$lhs, $rhs",
[(ARMcmpZ (and tGPR:$lhs, tGPR:$rhs), 0)]>,
OpenPOWER on IntegriCloud