brintos

brintos / llvm-project-archived public Read only

0
0
Text · 556 B · 475af62 Raw
19 lines · plain
1; Test initial-exec TLS accesses.2;3; RUN: llc < %s -mcpu=z10 -mtriple=s390x-linux-gnu -relocation-model=pic | FileCheck %s -check-prefix=CHECK-MAIN4 5@x = thread_local(initialexec) global i32 06 7; The offset must be loaded from the GOT.  This TLS access model does8; not use literal pool constants.9define ptr@foo() {10; CHECK-MAIN-LABEL: foo:11; CHECK-MAIN: ear [[HIGH:%r[0-5]]], %a012; CHECK-MAIN: sllg %r2, [[HIGH]], 3213; CHECK-MAIN-DAG: ear %r2, %a114; CHECK-MAIN-DAG: larl %r1, x@INDNTPOFF15; CHECK-MAIN: ag %r2, 0(%r1)16; CHECK-MAIN: br %r1417  ret ptr@x18}19