[libc] implement unistd/getentropy (#122692)
[llvm-project.git] / llvm / test / CodeGen / AArch64 / stack-guard-reassign.ll
blobd56de879089f34375ff931587a06bd0a04cc222f
1 ; RUN: llc -O0 --frame-pointer=all -mtriple=aarch64-- -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.
5 ; CHECK-LABEL: fn:
6 ; CHECK:      adrp [[REG:x[0-9]+]], __stack_chk_guard
7 ; CHECK-NEXT: ldr [[REG]], [[[REG]], :lo12:__stack_chk_guard]
8 ; CHECK-NEXT: stur [[REG]], [x29, #-8]