1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2 ; RUN: llc -mtriple=arm64e-apple-darwin %s -o - \
3 ; RUN: -aarch64-enable-collect-loh=0 | FileCheck %s
5 ; RUN: llc -mtriple=arm64e-apple-darwin %s -o - \
6 ; RUN: -global-isel -global-isel-abort=1 -verify-machineinstrs \
7 ; RUN: -aarch64-enable-collect-loh=0 | FileCheck %s
9 @var = thread_local global i8 0
11 define i8 @get_var() #0 {
12 ; CHECK-LABEL: get_var:
14 ; CHECK-NEXT: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
15 ; CHECK-NEXT: adrp x0, _var@TLVPPAGE
16 ; CHECK-NEXT: ldr x0, [x0, _var@TLVPPAGEOFF]
17 ; CHECK-NEXT: ldr x8, [x0]
18 ; CHECK-NEXT: blraaz x8
19 ; CHECK-NEXT: ldrb w0, [x0]
20 ; CHECK-NEXT: ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
23 %val = load i8, ptr @var, align 1
27 attributes #0 = { nounwind "ptrauth-calls" }