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
67 lines
1.9 KiB
ArmAsm
67 lines
1.9 KiB
ArmAsm
# REQUIRES: ppc
|
|
# RUN: llvm-mc -filetype=obj -triple=powerpc64le %s -o %t.o
|
|
# RUN: echo 'addis 5, 2, .LC0@toc@ha; ld 5, .LC0@toc@l(5); foo: \
|
|
# RUN: .section .toc,"aw",@progbits; .LC0: .tc foo[TC], foo' \
|
|
# RUN: | llvm-mc -filetype=obj -triple=powerpc64le - -o %t1.o
|
|
# RUN: ld.lld %t.o %t1.o -o %t
|
|
# RUN: llvm-objdump -d %t | FileCheck %s
|
|
|
|
# CHECK-LABEL: <_start>:
|
|
.globl _start
|
|
_start:
|
|
## Perform toc-indirect to toc-relative relaxation even if there are unrelated instructions in between.
|
|
# CHECK-NEXT: addis 3, 2, -2
|
|
# CHECK-NEXT: li 9, 0
|
|
# CHECK-NEXT: addi 3, 3, 32752
|
|
# CHECK-NEXT: lwa 3, 0(3)
|
|
addis 3, 2, .LC1@toc@ha # R_PPC64_TOC16_HA
|
|
li 9, 0
|
|
ld 3, .LC1@toc@l(3) # R_PPC64_TOC16_LO_DS
|
|
lwa 3, 0(3)
|
|
|
|
## R_PPC64_TOC16_HA and R_PPC64_TOC16_LO_DS can interleave.
|
|
# CHECK-NEXT: addis 3, 2, -2
|
|
# CHECK-NEXT: addis 4, 2, -2
|
|
# CHECK-NEXT: addi 3, 3, 32752
|
|
# CHECK-NEXT: addi 4, 4, 32756
|
|
addis 3, 2, .LC1@toc@ha
|
|
addis 4, 2, .LC2@toc@ha
|
|
ld 3, .LC1@toc@l(3)
|
|
ld 4, .LC2@toc@l(4)
|
|
|
|
## We choose to be conservative: the presence of R_PPC64_TOC16_LO
|
|
## suppresses relaxation for the symbol.
|
|
## R_PPC64_TOC16_HA and R_PPC64_TOC16_LO_DS pairs are not relaxed as well.
|
|
# CHECK-NEXT: nop
|
|
# CHECK-NEXT: addi 3, 2, -32768
|
|
# CHECK-NEXT: li 9, 0
|
|
# CHECK-NEXT: nop
|
|
# CHECK-NEXT: ld 4, -32768(2)
|
|
addis 3, 2, .LC0@toc@ha # R_PPC64_TOC16_HA
|
|
addi 3, 3, .LC0@toc@l # R_PPC64_TOC16_LO
|
|
li 9, 0
|
|
addis 4, 2, .LC0@toc@ha
|
|
ld 4, .LC0@toc@l(4)
|
|
|
|
# CHECK-COUNT-3: blr
|
|
AES_encrypt:
|
|
blr
|
|
AES_decrypt:
|
|
blr
|
|
BN_free:
|
|
blr
|
|
|
|
## %t1.o has relaxable relocation pairs referencing its .toc which is different
|
|
## from %t.o(.toc). The suppression in %t.o does not affect %t1.o even if
|
|
## the relocation addends are the same.
|
|
# CHECK-NEXT: addis 5, 2, -1
|
|
# CHECK-NEXT: addi 5, 5, -32768
|
|
|
|
.section .toc,"aw",@progbits
|
|
.LC0:
|
|
.tc AES_encrypt[TC], AES_encrypt
|
|
.LC1:
|
|
.tc AES_decrypt[TC], AES_decrypt
|
|
.LC2:
|
|
.tc BN_free[TC], BN_free
|