blob: ec4278ce72f6b9abac69756398c9f449411920be [file] [log] [blame]
Dan Gohmanc8054d92009-09-09 00:09:15 +00001; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi | \
Chandler Carrutha5a29f92012-07-02 12:47:22 +00002; RUN: grep "i(tpoff)"
Dan Gohmanc8054d92009-09-09 00:09:15 +00003; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi | \
Chandler Carrutha5a29f92012-07-02 12:47:22 +00004; RUN: grep "__aeabi_read_tp"
Dan Gohmanc8054d92009-09-09 00:09:15 +00005; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi \
Chandler Carrutha5a29f92012-07-02 12:47:22 +00006; RUN: -relocation-model=pic | grep "__tls_get_addr"
Lauro Ramos Venancio940b0832007-04-27 21:23:17 +00007
Lauro Ramos Venancio04750a12007-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}