1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi | \ 2*9880d681SAndroid Build Coastguard Worker; RUN: grep "tbss" 3*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi | \ 4*9880d681SAndroid Build Coastguard Worker; RUN: FileCheck %s -check-prefix=CHECK -check-prefix=NOEMU 5*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -emulated-tls -march=arm -mtriple=arm-linux-gnueabi | \ 6*9880d681SAndroid Build Coastguard Worker; RUN: FileCheck %s -check-prefix=CHECK -check-prefix=EMU 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Worker%struct.anon = type { i32, i32 } 9*9880d681SAndroid Build Coastguard Worker@teste = internal thread_local global %struct.anon zeroinitializer ; <%struct.anon*> [#uses=1] 10*9880d681SAndroid Build Coastguard Worker 11*9880d681SAndroid Build Coastguard Workerdefine i32 @main() { 12*9880d681SAndroid Build Coastguard Workerentry: 13*9880d681SAndroid Build Coastguard Worker %tmp2 = load i32, i32* getelementptr (%struct.anon, %struct.anon* @teste, i32 0, i32 0), align 8 ; <i32> [#uses=1] 14*9880d681SAndroid Build Coastguard Worker ret i32 %tmp2 15*9880d681SAndroid Build Coastguard Worker} 16*9880d681SAndroid Build Coastguard Worker 17*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: main: 18*9880d681SAndroid Build Coastguard Worker; NOEMU-NOT: __emutls_get_address 19*9880d681SAndroid Build Coastguard Worker 20*9880d681SAndroid Build Coastguard Worker; NOEMU: .section .tbss 21*9880d681SAndroid Build Coastguard Worker; NOEMU-LABEL: teste: 22*9880d681SAndroid Build Coastguard Worker; NOEMU-NEXT: .zero 8 23*9880d681SAndroid Build Coastguard Worker 24*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: __emutls_t.teste 25*9880d681SAndroid Build Coastguard Worker 26*9880d681SAndroid Build Coastguard Worker; EMU: .p2align 2 27*9880d681SAndroid Build Coastguard Worker; EMU-LABEL: __emutls_v.teste: 28*9880d681SAndroid Build Coastguard Worker; EMU-NEXT: .long 8 29*9880d681SAndroid Build Coastguard Worker; EMU-NEXT: .long 4 30*9880d681SAndroid Build Coastguard Worker; EMU-NEXT: .long 0 31*9880d681SAndroid Build Coastguard Worker; EMU-NEXT: .long 0 32*9880d681SAndroid Build Coastguard Worker 33*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: teste: 34*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: __emutls_t.teste 35