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, #16
7 ; CHECK-NEXT: sub sp, sp, #65536
8 ; CHECK-NEXT: ldr r1, .LCPI0_0
9 ; CHECK-NEXT: ldr r1, [r1]
10 ; CHECK-NEXT: add lr, sp, #65536
11 ; CHECK-NEXT: str r1, [lr, #12]
13 ; CHECK-NEXT: .long __stack_chk_guard