1 # RUN: llc -o - %s -mtriple=thumbv7-- -run-pass=stack-protector -run-pass=prologepilog | FileCheck %s
3 # This should trigger an emergency spill in the register scavenger because the
4 # frame offset into the large argument is too large.
5 # CHECK-LABEL: name: func0
6 # CHECK: t2STRi12 killed [[SPILLED:\$r[0-9]+]], $sp, 0, 14, $noreg :: (store 4 into %stack.0)
7 # CHECK: [[SPILLED]] = t2ADDri killed $sp, 4096, 14, $noreg, $noreg
8 # CHECK: $sp = t2LDRi12 killed [[SPILLED]], 40, 14, $noreg :: (load 4)
9 # CHECK: [[SPILLED]] = t2LDRi12 $sp, 0, 14, $noreg :: (load 4 from %stack.0)
11 tracksRegLiveness: true
13 - { id: 0, offset: 4084, size: 4, alignment: 4, isImmutable: true,
15 - { id: 1, offset: -12, size: 4096, alignment: 4, isImmutable: false,
34 $sp = t2LDRi12 %fixed-stack.0, 0, 14, $noreg :: (load 4)
52 # This should not trigger an emergency spill yet.
53 # CHECK-LABEL: name: func1
56 # CHECK: $r11 = t2LDRi12 $sp, 4092, 14, $noreg :: (load 4)
59 tracksRegLiveness: true
61 - { id: 0, offset: 4044, size: 4, alignment: 4, isImmutable: true,
63 - { id: 1, offset: -12, size: 4056, alignment: 4, isImmutable: false,
81 $r11 = t2LDRi12 %fixed-stack.0, 0, 14, $noreg :: (load 4)