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
5define void @test() nounwind {
6entry:
7; CHECK: sub.w
8; CHECK: add.w
9  %Buffer.i = alloca [512 x i8], align 4
10  ret void
11}
12