OSDN Git Service

The Thumb tADDrSPi instruction is not valid when the destination is SP.
authorBob Wilson <bob.wilson@apple.com>
Sat, 4 Dec 2010 04:40:19 +0000 (04:40 +0000)
committerBob Wilson <bob.wilson@apple.com>
Sat, 4 Dec 2010 04:40:19 +0000 (04:40 +0000)
commitc24130bade8c348d0d437644b01ebdd3c65e6681
treebc7f8a93d7a6e98e34b53362093eb3bee5b0a9fe
parent7f762187209baded73a24a9040edb6b3b29bada4
The Thumb tADDrSPi instruction is not valid when the destination is SP.
Check for that and try narrowing it to tADDspi instead.  Radar 8724703.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120892 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/Thumb2SizeReduction.cpp
test/CodeGen/Thumb2/2010-12-03-AddSPNarrowing.ll [new file with mode: 0644]