1 ; RUN: llc -O0 --frame-pointer=none -mtriple=arm-- -o - %S/../Inputs/stack-guard-reassign.ll | FileCheck %s
3 ; Verify that the offset assigned to the stack protector is at the top of the
4 ; frame, covering the locals.
6 ; CHECK: sub sp, sp, #32
7 ; CHECK-NEXT: sub sp, sp, #65536
8 ; CHECK-NEXT: add lr, sp, #65536
9 ; CHECK-NEXT: add r1, lr, #28
10 ; CHECK-NEXT: ldr r2, .LCPI0_0
11 ; CHECK-NEXT: ldr r3, [r2]
12 ; CHECK-NEXT: str r3, [r1]
14 ; CHECK-NEXT: .long __stack_chk_guard