diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-01-22 00:08:13 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-01-22 00:08:13 +0000 |
commit | d5d2baec2609da3ade9ca205e87c88d35e9e6976 (patch) | |
tree | 0250b253e3176ffc8d6f5655b0de22bb09b56270 /lib/Target/ARM/Thumb2SizeReduction.cpp | |
parent | 8767d32e758db3ffef796342a2650f337cf3404a (diff) | |
download | external_llvm-d5d2baec2609da3ade9ca205e87c88d35e9e6976.zip external_llvm-d5d2baec2609da3ade9ca205e87c88d35e9e6976.tar.gz external_llvm-d5d2baec2609da3ade9ca205e87c88d35e9e6976.tar.bz2 |
Fix PR5694. The CMN instructions set the flags differently from CMP, so they
cannot be directly interchanged for comparisons against negated values.
Disable the CMN instructions for the time being.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94119 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/Thumb2SizeReduction.cpp')
-rw-r--r-- | lib/Target/ARM/Thumb2SizeReduction.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/ARM/Thumb2SizeReduction.cpp b/lib/Target/ARM/Thumb2SizeReduction.cpp index 35359aa..95288bf 100644 --- a/lib/Target/ARM/Thumb2SizeReduction.cpp +++ b/lib/Target/ARM/Thumb2SizeReduction.cpp @@ -65,7 +65,8 @@ namespace { { ARM::t2ASRri, ARM::tASRri, 0, 5, 0, 1, 0, 0,0, 0 }, { ARM::t2ASRrr, 0, ARM::tASRrr, 0, 0, 0, 1, 0,0, 0 }, { ARM::t2BICrr, 0, ARM::tBIC, 0, 0, 0, 1, 0,0, 0 }, - { ARM::t2CMNrr, ARM::tCMN, 0, 0, 0, 1, 0, 2,0, 0 }, + //FIXME: Disable CMN, as CCodes are backwards from compare expectations + //{ ARM::t2CMNrr, ARM::tCMN, 0, 0, 0, 1, 0, 2,0, 0 }, { ARM::t2CMPri, ARM::tCMPi8, 0, 8, 0, 1, 0, 2,0, 0 }, { ARM::t2CMPrr, ARM::tCMPhir, 0, 0, 0, 0, 0, 2,0, 0 }, { ARM::t2CMPzri,ARM::tCMPzi8, 0, 8, 0, 1, 0, 2,0, 0 }, |