1 ; RUN: llc < %s -mtriple=thumbv7-linux-gnueabi | FileCheck %s -check-prefix=CHECK-NOT-PIC
2 ; RUN: llc < %s -mtriple=thumbv7-linux-gnueabi -relocation-model=pic | FileCheck %s -check-prefix=CHECK-PIC
4 @i = external thread_local global i32 ; <i32*> [#uses=2]
9 ; CHECK-NOT-PIC: add r0, pc
10 ; CHECK-NOT-PIC: ldr r1, [r0]
11 ; CHECK-NOT-PIC: i(gottpoff)
14 ; CHECK-PIC: bl __tls_get_addr(PLT)
15 %tmp1 = load i32* @i ; <i32> [#uses=1]
22 ; CHECK-NOT-PIC: add r0, pc
23 ; CHECK-NOT-PIC: ldr r1, [r0]
24 ; CHECK-NOT-PIC: i(gottpoff)
27 ; CHECK-PIC: bl __tls_get_addr(PLT)