1 ; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi \
2 ; RUN: | FileCheck %s -check-prefix=CHECK-NONPIC
3 ; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi \
4 ; RUN: -relocation-model=pic | FileCheck %s -check-prefix=CHECK-PIC
6 @i = external thread_local global i32 ; <i32*> [#uses=2]
10 ; CHECK-NONPIC: ldr {{r.}}, [pc, {{r.}}]
11 ; CHECK-NONPIC: i(gottpoff)
13 ; CHECK-PIC: __tls_get_addr
15 %tmp1 = load i32* @i ; <i32> [#uses=1]
21 ; CHECK-NONPIC: ldr {{r.}}, [pc, {{r.}}]
22 ; CHECK-NONPIC: i(gottpoff)
24 ; CHECK-PIC: __tls_get_addr