summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Thumb2/2010-12-03-AddSPNarrowing.ll
blob: 5b91a5f65aeecaf909f6225f85dd21e11ba66404 (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: llc < %s -mtriple=thumbv7-apple-darwin | FileCheck %s
; Radar 8724703: Make sure that a t2ADDrSPi instruction with SP as the
; destination register is narrowed to tADDspi instead of tADDrSPi.

define void @test() nounwind {
entry:
; CHECK: sub.w
; CHECK: add.w
  %Buffer.i = alloca [512 x i8], align 4
  ret void
}