xref: /llvm-project/llvm/test/CodeGen/Thumb2/2010-12-03-AddSPNarrowing.ll (revision ed854baad5d5313bc19364256785ae9dc28cb39d)
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