blob: 1087094e5798abf97dfdaef318fde3a3aa078d72 [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi | \
Lauro Ramos Venancio2a377992007-04-27 21:23:17 +00002; RUN: grep {i(tpoff)}
Dan Gohmanfce288f2009-09-09 00:09:15 +00003; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi | \
Lauro Ramos Venancio2a377992007-04-27 21:23:17 +00004; RUN: grep {__aeabi_read_tp}
Dan Gohmanfce288f2009-09-09 00:09:15 +00005; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi \
Lauro Ramos Venancio2a377992007-04-27 21:23:17 +00006; 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}