1 ; RUN: llc -mtriple=arm64_32-apple-ios %s -o - | FileCheck %s
3 define i32 @test_thread_local() {
4 ; CHECK-LABEL: test_thread_local:
5 ; CHECK: adrp x[[TMP:[0-9]+]], _var@TLVPPAGE
6 ; CHECK: ldr w0, [x[[TMP]], _var@TLVPPAGEOFF]
7 ; CHECK: ldr w[[DEST:[0-9]+]], [x0]
10 %val = load i32, ptr @var
14 @var = thread_local global i32 zeroinitializer
16 ; CHECK: .tbss _var$tlv$init, 4, 2
18 ; CHECK-LABEL: __DATA,__thread_vars
20 ; CHECK: .long __tlv_bootstrap
22 ; CHECK: .long _var$tlv$init