summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/Thumb2SizeReduction.cpp
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
commit2c7e5c714c8675f757c4936a3a2132c2466a626c (patch)
treed12badebae2dc12170dfc9c5fbf765d4fc965c6c /lib/Target/ARM/Thumb2SizeReduction.cpp
parent3d142e58efde4826b20810d9c8ef9e52e5bbbe50 (diff)
downloadllvm-2c7e5c714c8675f757c4936a3a2132c2466a626c.tar.gz
llvm-2c7e5c714c8675f757c4936a3a2132c2466a626c.tar.bz2
llvm-2c7e5c714c8675f757c4936a3a2132c2466a626c.tar.xz
Added missing CMN case in Thumb2SizeReduction pass so that LLVM emits 16-bits encoding of CMN instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156195 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/Thumb2SizeReduction.cpp')
-rw-r--r--lib/Target/ARM/Thumb2SizeReduction.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/ARM/Thumb2SizeReduction.cpp b/lib/Target/ARM/Thumb2SizeReduction.cpp
index b5a397e616..f18f491f49 100644
--- a/lib/Target/ARM/Thumb2SizeReduction.cpp
+++ b/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 },