summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM
diff options
context:
space:
mode:
authorSebastian Pop <spop@codeaurora.org>2012-05-04 19:53:56 +0000
committerSebastian Pop <spop@codeaurora.org>2012-05-04 19:53:56 +0000
commit2420e8b7d591acce85b253f4b234c1a8c05fa5e6 (patch)
tree80427eb8293aac14c2db49002f147674866829ba /llvm/lib/Target/ARM
parentd6c440cd4ce06c7346ebbd2fff09b50c04cb6280 (diff)
downloadbcm5719-llvm-2420e8b7d591acce85b253f4b234c1a8c05fa5e6.tar.gz
bcm5719-llvm-2420e8b7d591acce85b253f4b234c1a8c05fa5e6.zip
Added missing CMN case in Thumb2SizeReduction pass so that LLVM emits 16-bits encoding of CMN instructions.
llvm-svn: 156195
Diffstat (limited to 'llvm/lib/Target/ARM')
-rw-r--r--llvm/lib/Target/ARM/Thumb2SizeReduction.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/Thumb2SizeReduction.cpp b/llvm/lib/Target/ARM/Thumb2SizeReduction.cpp
index b5a397e6168..f18f491f499 100644
--- a/llvm/lib/Target/ARM/Thumb2SizeReduction.cpp
+++ b/llvm/lib/Target/ARM/Thumb2SizeReduction.cpp
@@ -67,6 +67,7 @@ namespace {
{ ARM::t2BICrr, 0, ARM::tBIC, 0, 0, 0, 1, 0,0, 1,0 },
//FIXME: Disable CMN, as CCodes are backwards from compare expectations
//{ ARM::t2CMNrr, ARM::tCMN, 0, 0, 0, 1, 0, 2,0, 0,0 },
+ { ARM::t2CMNzrr, ARM::tCMNz, 0, 0, 0, 1, 0, 2,0, 0,0 },
{ ARM::t2CMPri, ARM::tCMPi8, 0, 8, 0, 1, 0, 2,0, 0,0 },
{ ARM::t2CMPrr, ARM::tCMPhir, 0, 0, 0, 0, 0, 2,0, 0,1 },
{ ARM::t2EORrr, 0, ARM::tEOR, 0, 0, 0, 1, 0,0, 1,0 },
OpenPOWER on IntegriCloud