blob: 6866a42db4951e6acfd02478ae8398979edc85b6 [file] [log] [blame]
Lauro Ramos Venancio2a377992007-04-27 21:23:17 +00001; RUN: llvm-as < %s | llc -march=arm -mtriple=arm-linux-gnueabi | \
2; RUN: grep {i(tpoff)}
3; RUN: llvm-as < %s | llc -march=arm -mtriple=arm-linux-gnueabi | \
4; RUN: grep {__aeabi_read_tp}
5; RUN: llvm-as < %s | llc -march=arm -mtriple=arm-linux-gnueabi \
6; RUN: -relocation-model=pic | grep {__tls_get_addr}
7
Lauro Ramos Venancio1bd151a2007-04-27 21:08:48 +00008
9@i = thread_local global i32 15 ; <i32*> [#uses=2]
10
11define i32 @f() {
12entry:
13 %tmp1 = load i32* @i ; <i32> [#uses=1]
14 ret i32 %tmp1
15}
16
17define i32* @g() {
18entry:
19 ret i32* @i
20}