Radar 7417921
authorJim Grosbach <grosbach@apple.com>
Tue, 9 Feb 2010 19:51:37 +0000 (19:51 +0000)
committerJim Grosbach <grosbach@apple.com>
Tue, 9 Feb 2010 19:51:37 +0000 (19:51 +0000)
commit4152778605dcab9e650b2cd03e2d8dc12f20aff6
treea72eba0c84465f316bd85bf77d7fb3e24dac5722
parent5e24737d16e1c2aab65d24ff2a10ffc5255864f9
Radar 7417921

tMOVCCi pattern only valid for low registers, as the Thumb1 mov immediate to
register instruction only works with low registers. Allowing high registers
for the instruction resulted in the assembler choosing the wide (32-bit)
encoding for the mov, but LLVM though the instruction was only 16 bits wide,
so offset calculations for constant pools became incorrect, leading to
out of range constant pool entries.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95686 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrThumb.td
lib/Target/ARM/Thumb2SizeReduction.cpp