1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -emulated-tls -march=arm -mtriple=arm-linux-androideabi \ 2*9880d681SAndroid Build Coastguard Worker; RUN: | FileCheck %s 3*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -emulated-tls -march=arm -mtriple=arm-linux-androideabi \ 4*9880d681SAndroid Build Coastguard Worker; RUN: -relocation-model=pic | FileCheck %s --check-prefix=PIC 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Worker; Compared with tls1.ll, emulated mode should not use __aeabi_read_tp or __tls_get_addr. 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: _aeabi_read_tp 9*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: _tls_get_addr 10*9880d681SAndroid Build Coastguard Worker; CHECK: __emutls_get_addr 11*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: __aeabi_read_tp 12*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: _tls_get_addr 13*9880d681SAndroid Build Coastguard Worker 14*9880d681SAndroid Build Coastguard Worker; PIC-NOT: _aeabi_read_tp 15*9880d681SAndroid Build Coastguard Worker; PIC-NOT: _tls_get_addr 16*9880d681SAndroid Build Coastguard Worker; PIC: __emutls_get_addr 17*9880d681SAndroid Build Coastguard Worker; PIC-NOT: _aeabi_read_tp 18*9880d681SAndroid Build Coastguard Worker; PIC-NOT: _tls_get_addr 19*9880d681SAndroid Build Coastguard Worker 20*9880d681SAndroid Build Coastguard Worker@i = thread_local global i32 15 ; <i32*> [#uses=2] 21*9880d681SAndroid Build Coastguard Worker 22*9880d681SAndroid Build Coastguard Workerdefine i32 @f() { 23*9880d681SAndroid Build Coastguard Workerentry: 24*9880d681SAndroid Build Coastguard Worker %tmp1 = load i32, i32* @i ; <i32> [#uses=1] 25*9880d681SAndroid Build Coastguard Worker ret i32 %tmp1 26*9880d681SAndroid Build Coastguard Worker} 27*9880d681SAndroid Build Coastguard Worker 28*9880d681SAndroid Build Coastguard Workerdefine i32* @g() { 29*9880d681SAndroid Build Coastguard Workerentry: 30*9880d681SAndroid Build Coastguard Worker ret i32* @i 31*9880d681SAndroid Build Coastguard Worker} 32