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