| Bob Wilson | ed854ba | 2010-12-04 04:40:19 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -mtriple=thumbv7-apple-darwin | FileCheck %s |
| 2 | ; Radar 8724703: Make sure that a t2ADDrSPi instruction with SP as the | ||||
| 3 | ; destination register is narrowed to tADDspi instead of tADDrSPi. | ||||
| 4 | |||||
| 5 | define void @test() nounwind { | ||||
| 6 | entry: | ||||
| 7 | ; CHECK: sub.w | ||||
| 8 | ; CHECK: add.w | ||||
| 9 | %Buffer.i = alloca [512 x i8], align 4 | ||||
| 10 | ret void | ||||
| 11 | } | ||||