1 ; Test initial-exec TLS accesses.
3 ; RUN: llc < %s -mcpu=z10 -mtriple=s390x-linux-gnu -relocation-model=pic | FileCheck %s -check-prefix=CHECK-MAIN
5 @x = thread_local(initialexec) global i32 0
7 ; The offset must be loaded from the GOT. This TLS access model does
8 ; not use literal pool constants.
10 ; CHECK-MAIN-LABEL: foo:
11 ; CHECK-MAIN: ear [[HIGH:%r[0-5]]], %a0
12 ; CHECK-MAIN: sllg %r2, [[HIGH]], 32
13 ; CHECK-MAIN-DAG: ear %r2, %a1
14 ; CHECK-MAIN-DAG: larl %r1, x@INDNTPOFF
15 ; CHECK-MAIN: ag %r2, 0(%r1)