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
68 lines
1.8 KiB
ArmAsm
68 lines
1.8 KiB
ArmAsm
# REQUIRES: ppc
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t.o
|
|
# RUN: ld.lld -shared --no-toc-optimize %t.o -o %t
|
|
# RUN: llvm-objdump -d %t | FileCheck %s
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o
|
|
# RUN: ld.lld -shared --no-toc-optimize %t.o -o %t
|
|
# RUN: llvm-objdump -d %t | FileCheck %s
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t.o
|
|
# RUN: ld.lld -shared %t.o -o %t
|
|
# RUN: llvm-objdump -d %t | FileCheck --check-prefix=OPT %s
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o
|
|
# RUN: ld.lld -shared %t.o -o %t
|
|
# RUN: llvm-objdump -d %t | FileCheck --check-prefix=OPT %s
|
|
|
|
.abiversion 2
|
|
.section ".text"
|
|
|
|
.p2align 2
|
|
.global func
|
|
.type func, @function
|
|
func:
|
|
.Lfunc_gep:
|
|
addis 2, 12, .TOC.-.Lfunc_gep@ha
|
|
addi 2, 2, .TOC.-.Lfunc_gep@l
|
|
.Lfunc_lep:
|
|
.localentry func, .-func
|
|
addis 3, 2, a@got@ha
|
|
ld 3, a@got@l(3)
|
|
ld 4, a@got(2)
|
|
lis 5, a@got@h
|
|
ori 5, 5, a@got@l
|
|
li 6, 0
|
|
ori 6, 6, a@got
|
|
blr
|
|
|
|
# CHECK-LABEL: func
|
|
# CHECK: addis 3, 2, 0
|
|
# CHECK-NEXT: ld 3, -32760(3)
|
|
# CHECK-NEXT: ld 4, -32760(2)
|
|
# CHECK-NEXT: lis 5, -1
|
|
# CHECK-NEXT: ori 5, 5, 32776
|
|
# CHECK-NEXT: li 6, 0
|
|
# CHECK-NEXT: ori 6, 6, 32776
|
|
|
|
# OPT-LABEL: func
|
|
# OPT: nop
|
|
# OPT-NEXT: ld 3, -32760(2)
|
|
# OPT-NEXT: ld 4, -32760(2)
|
|
# OPT-NEXT: lis 5, -1
|
|
# OPT-NEXT: ori 5, 5, 32776
|
|
# OPT-NEXT: li 6, 0
|
|
# OPT-NEXT: ori 6, 6, 32776
|
|
|
|
# Since the got entry for a is .got[1] and the TOC base points to
|
|
# .got + 0x8000, the offset for a@got is -0x7FF8 --> -32760
|
|
|
|
.section ".data"
|
|
.global a
|
|
.type a, @object
|
|
.size a, 4
|
|
.p2align 2
|
|
a:
|
|
.long 0x1000
|