llvm.org GIT mirror llvm / release_90 test / CodeGen / ARM / stack-guard-reassign.ll
release_90

Tree @release_90 (Download .tar.gz)

stack-guard-reassign.ll @release_90raw · history · blame

; RUN: llc -O0 --frame-pointer=none -mtriple=arm-- -o - %S/../Inputs/stack-guard-reassign.ll | FileCheck %s

; Verify that the offset assigned to the stack protector is at the top of the
; frame, covering the locals.
; CHECK-LABEL: fn:
; CHECK:      sub sp, sp, #32
; CHECK-NEXT: sub sp, sp, #65536
; CHECK-NEXT: add lr, sp, #65536
; CHECK-NEXT: add r1, lr, #28
; CHECK-NEXT: ldr r2, .LCPI0_0
; CHECK-NEXT: ldr r3, [r2]
; CHECK-NEXT: str r3, [r1]
; CHECK: .LCPI0_0:
; CHECK-NEXT: .long __stack_chk_guard