xref: /llvm-project/llvm/test/CodeGen/ARM/tls1.ll (revision bed1c7f061aa12417aa081e334afdba45767b938)
1; RUN: llc < %s -mtriple=arm-linux-gnueabi | FileCheck %s
2; RUN: llc < %s -mtriple=arm-linux-gnueabi -relocation-model=pic | \
3; RUN:   FileCheck %s --check-prefix=PIC
4
5
6; CHECK: i(TPOFF)
7; CHECK: __aeabi_read_tp
8
9; PIC: __tls_get_addr
10
11@i = dso_local thread_local global i32 15		; <ptr> [#uses=2]
12
13define dso_local i32 @f() {
14entry:
15	%tmp1 = load i32, ptr @i		; <i32> [#uses=1]
16	ret i32 %tmp1
17}
18
19define dso_local ptr @g() {
20entry:
21	ret ptr @i
22}
23