1 ; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi | FileCheck %s 2 ; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi -relocation-model=pic | \ 3 ; RUN: FileCheck %s --check-prefix=PIC 4 5 6 ; CHECK: i(TPOFF) 7 ; CHECK: __aeabi_read_tp 8 9 ; PIC: __tls_get_addr 10 11 @i = thread_local global i32 15 ; <i32*> [#uses=2] 12 13 define i32 @f() { 14 entry: 15 %tmp1 = load i32, i32* @i ; <i32> [#uses=1] 16 ret i32 %tmp1 17 } 18 19 define i32* @g() { 20 entry: 21 ret i32* @i 22 } 23