Files
TheRock/debug-tools/rocgdb/source/ld/testsuite/ld-powerpc/tlsie.s
T
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

78 lines
1.6 KiB
ArmAsm

.section ".tbss","awT",@nobits
.p2align 3
pad: .space 8
.global a
a: .space 8
.global b
b: .space 8
.global c
c: .space 8
.global d
d: .space 8
.text
.globl _start
_start:
#Small model OpenPower
ld 9,.La@toc(2)
add 10,9,.La@tls
.section .toc,"aw",@progbits
.La:
.quad a@tprel
.text
#Medium model ELF
addis 9,2,b@got@tprel@ha
ld 10,b@got@tprel@l(9)
add 3,10,b@tls
#PCrel
pld 4,c@got@tprel@pcrel
add 4,4,c@tls@pcrel
#All of the above using the same symbol
addis 9,2,.Ld@toc@ha
ld 9,.Ld@toc@l(9)
add 10,9,.Ld@tls
.section .toc,"aw",@progbits
.Ld:
.quad d@tprel
.text
addis 9,2,d@got@tprel@ha
ld 31,d@got@tprel@l(9)
add 3,31,d@tls
pld 30,d@got@tprel@pcrel
add 3,30,d@tls@pcrel
#Note that after optimisation r31 and r30 above have a different value to
#what they would have without optimisation. r31 may not even be written.
#Here are all the other insns that gas/ld accept as the final insn of an
#IE sequence. The r30 value below will be different after optimisation
#for the non-update forms.
lwzx 4,30,d@tls@pcrel
lwzux 4,30,d@tls@pcrel
lbzx 5,30,d@tls@pcrel
lbzux 5,30,d@tls@pcrel
stwx 6,30,d@tls@pcrel
stwux 6,30,d@tls@pcrel
stbx 7,30,d@tls@pcrel
stbux 7,30,d@tls@pcrel
lhzx 8,30,d@tls@pcrel
lhzux 8,30,d@tls@pcrel
lhax 9,30,d@tls@pcrel
lhaux 9,30,d@tls@pcrel
sthx 10,30,d@tls@pcrel
sthux 10,30,d@tls@pcrel
lfsx 11,30,d@tls@pcrel
lfsux 11,30,d@tls@pcrel
lfdx 12,30,d@tls@pcrel
lfdux 12,30,d@tls@pcrel
stfsx 13,30,d@tls@pcrel
stfsux 13,30,d@tls@pcrel
stfdx 14,30,d@tls@pcrel
stfdux 14,30,d@tls@pcrel
ldx 15,30,d@tls@pcrel
ldux 15,30,d@tls@pcrel
stdx 16,30,d@tls@pcrel
stdux 16,30,d@tls@pcrel
lwax 17,30,d@tls@pcrel