xref: /minix3/external/bsd/llvm/dist/llvm/test/CodeGen/Thumb2/2010-12-03-AddSPNarrowing.ll (revision 0b98e8aad89f2bd4ba80b523d73cf29e9dd82ce1)
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