1 ; RUN: llc -verify-machineinstrs -mtriple="powerpc64le-unknown-linux-gnu" \
2 ; RUN: -ppc-asm-full-reg-names -mcpu=pwr10 -relocation-model=pic < %s | FileCheck %s
5 @x = external dso_local thread_local unnamed_addr global ptr, align 8
6 define void @test(ptr %arg) {
8 ; CHECK: # %bb.0: # %entry
10 ; CHECK: std r30, -16(r1)
11 ; CHECK-NEXT: std r0, 16(r1)
12 ; CHECK-NEXT: stdu r1, -48(r1)
13 ; CHECK-NEXT: mr r30, r3
14 ; CHECK-NEXT: paddi r3, 0, x@got@tlsld@pcrel, 1
15 ; CHECK-NEXT: bl __tls_get_addr@notoc(x@tlsld)
16 ; CHECK-NEXT: paddi r3, r3, x@DTPREL
17 ; CHECK-NEXT: std r30, 0(r3)
18 ; CHECK-NEXT: addi r1, r1, 48
19 ; CHECK-NEXT: ld r0, 16(r1)
20 ; CHECK-NEXT: ld r30, -16(r1)
23 store ptr %arg, ptr @x, align 8