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
66 lines
2.1 KiB
ArmAsm
66 lines
2.1 KiB
ArmAsm
# REQUIRES: loongarch
|
|
## Relax R_LARCH_CALL30. This test tests boundary cases and some special symbols.
|
|
|
|
# RUN: rm -rf %t && split-file %s %t && cd %t
|
|
# RUN: llvm-mc -filetype=obj -triple=loongarch32 -mattr=+relax a.s -o a.o
|
|
|
|
# RUN: ld.lld -T lds a.o -o a
|
|
# RUN: llvm-objdump -d --no-show-raw-insn a | FileCheck %s --check-prefixes=RELAX,RELAX-MID
|
|
|
|
## Unsure whether this needs a diagnostic. GNU ld allows this.
|
|
# RUN: ld.lld -T lds -pie a.o -o a.pie
|
|
# RUN: llvm-objdump -d --no-show-raw-insn a.pie | FileCheck %s --check-prefixes=RELAX,RELAX-MID
|
|
|
|
# RUN: ld.lld -T lds -pie -z notext -z ifunc-noplt a.o -o a.ifunc-noplt
|
|
# RUN: llvm-objdump -d --no-show-raw-insn a.ifunc-noplt | FileCheck %s --check-prefixes=RELAX,NORELAX-MID
|
|
|
|
# RELAX-LABEL: <_start>:
|
|
## offset = 0x10000000 - 0x8000000 = 0x8000000(134217728), hi=512, lo18=0
|
|
# RELAX-NEXT: 8000000: pcaddu12i $ra, 32768
|
|
# RELAX-NEXT: jirl $ra, $ra, 0
|
|
# RELAX-NEXT: bl 134217720
|
|
# RELAX-NEXT: bl -134217728
|
|
## offset = 12 - 0x8000010 = -0x8000004(-134217732), hi=512, lo18=-4
|
|
# RELAX-NEXT: 8000010: pcaddu12i $ra, -32769
|
|
# RELAX-NEXT: jirl $ra, $ra, 4092
|
|
# RELAX-EMPTY:
|
|
|
|
# RELAX-MID-LABEL: <.mid>:
|
|
## offset = 0x8010000 - 0x8008000 = 32768
|
|
# RELAX-MID-NEXT: 8008000: bl 32768
|
|
# RELAX-MID-NEXT: b 32764
|
|
# RELAX-MID-EMPTY:
|
|
|
|
# NORELAX-MID-LABEL: <.mid>:
|
|
# NORELAX-MID-NEXT: 8008000: pcaddu12i $ra, 0
|
|
# NORELAX-MID-NEXT: jirl $ra, $ra, 0
|
|
# NORELAX-MID-NEXT: pcaddu12i $t0, 0
|
|
# NORELAX-MID-NEXT: jr $t0
|
|
# NORELAX-MID-EMPTY:
|
|
|
|
#--- a.s
|
|
.global _start, ifunc
|
|
_start:
|
|
call30 pos # exceed positive range (.text+0x7fffffc), not relaxed
|
|
call30 pos # relaxed
|
|
call30 neg # relaxed
|
|
call30 neg # exceed negative range (.text+16-0x8000000), not relaxed
|
|
|
|
.section .mid,"ax",@progbits
|
|
.balign 16
|
|
call30 ifunc # enable ifunc, not relaxed
|
|
tail30 $t0, ifunc # enable ifunc, not relaxed
|
|
|
|
.type ifunc, @gnu_indirect_function
|
|
ifunc:
|
|
ret
|
|
|
|
#--- lds
|
|
SECTIONS {
|
|
.text 0x8000000 : { *(.text) }
|
|
.mid 0x8008000 : { *(.mid) }
|
|
.iplt 0x8010000 : { *(.iplt) }
|
|
}
|
|
neg = 12;
|
|
pos = 0x10000000;
|