blob: d91e3b32f9b7abb62ffe2f48eafbb37152160ac7 [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -mtriple=thumbv7-linux-gnueabi | \
Chandler Carruth4177e6f2012-07-02 12:47:22 +00002; RUN: grep "i(tpoff)"
Dan Gohmanfce288f2009-09-09 00:09:15 +00003; RUN: llc < %s -mtriple=thumbv7-linux-gnueabi | \
Chandler Carruth4177e6f2012-07-02 12:47:22 +00004; RUN: grep "__aeabi_read_tp"
Dan Gohmanfce288f2009-09-09 00:09:15 +00005; RUN: llc < %s -mtriple=thumbv7-linux-gnueabi \
Chandler Carruth4177e6f2012-07-02 12:47:22 +00006; RUN: -relocation-model=pic | grep "__tls_get_addr"
David Goodwind1fa1202009-07-01 00:01:13 +00007
8
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}