1 ; RUN: llc < %s -emulated-tls -march=arm -mtriple=arm-linux-androideabi \
3 ; RUN: llc < %s -emulated-tls -march=arm -mtriple=arm-linux-androideabi \
4 ; RUN: -relocation-model=pic | FileCheck %s --check-prefix=PIC
6 ; Compared with tls1.ll, emulated mode should not use __aeabi_read_tp or __tls_get_addr.
8 ; CHECK-NOT: _aeabi_read_tp
9 ; CHECK-NOT: _tls_get_addr
10 ; CHECK: __emutls_get_addr
11 ; CHECK-NOT: __aeabi_read_tp
12 ; CHECK-NOT: _tls_get_addr
14 ; PIC-NOT: _aeabi_read_tp
15 ; PIC-NOT: _tls_get_addr
16 ; PIC: __emutls_get_addr
17 ; PIC-NOT: _aeabi_read_tp
18 ; PIC-NOT: _tls_get_addr
20 @i = thread_local global i32 15 ; <i32*> [#uses=2]
24 %tmp1 = load i32, i32* @i ; <i32> [#uses=1]