Files
TheRock/compiler/amd-llvm/llvm/test/MC/Sparc/Relocations/relocation.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

76 lines
1.9 KiB
ArmAsm

## Test relocations without specifiers. See also relocation-specifier.s for relocations with specifiers.
# RUN: llvm-mc %s -triple=sparcv9 | FileCheck %s --check-prefix=ASM
# RUN: llvm-mc %s -triple=sparcv9 -filetype=obj -o %t
# RUN: llvm-objdump -Dr %t | FileCheck %s --check-prefix=OBJDUMP
# ASM: call local
# ASM: call local1
# ASM-NEXT: call undef
# OBJDUMP: call 0x14
# OBJDUMP-NEXT: call 0x4
# OBJDUMP-NEXT: R_SPARC_WDISP30 .text1+0x4
# OBJDUMP-NEXT: call 0x8
# OBJDUMP-NEXT: R_SPARC_WDISP30 undef{{$}}
call local
call local1
call undef
# ASM: or %g1, sym, %g3
# ASM-NEXT: or %g1, sym+4, %g3
# OBJDUMP: or %g1, 0x0, %g3
# OBJDUMP-NEXT: 0000000c: R_SPARC_13 sym{{$}}
# OBJDUMP-NEXT: or %g1, 0x0, %g3
# OBJDUMP-NEXT: 00000010: R_SPARC_13 sym+0x4
or %g1, sym, %g3
or %g1, (sym+4), %g3
local:
# ASM: brz %g1, undef
# ASM: brlz %g1, .Ltmp{{.}}-8
# OBJDUMP: brz %g1, 0x14
# OBJDUMP-NEXT: R_SPARC_WDISP16 undef
# OBJDUMP-NEXT: brlz %g1, 0x10
# OBJDUMP-NEXT: bg %icc, 0x1c
# OBJDUMP-NEXT: R_SPARC_WDISP19 undef
# OBJDUMP-NEXT: bg %icc, 0x18
# OBJDUMP-NEXT: cbn 0x24
# OBJDUMP-NEXT: R_SPARC_WDISP22 undef
# OBJDUMP-NEXT: cbn 0x20
brz %g1, undef
brlz %g1, .-8
bg %icc, undef
bg %icc, .-8
cbn undef
cbn .-8
.section .text1,"ax"
nop
local1:
# OBJDUMP-LABEL: .data:
# OBJDUMP: 0: R_SPARC_32 .text1+0x8
# OBJDUMP: 4: R_SPARC_DISP32 .text1+0x8
# OBJDUMP: 8: R_SPARC_64 .text1+0x8
# OBJDUMP: 10: R_SPARC_DISP64 .text1+0x8
.data
.word local1+4
.word local1+4-.
.xword local1+4
.xword local1+4-.
# OBJDUMP: 18: R_SPARC_8 .text1+0x8
# OBJDUMP: 19: R_SPARC_DISP8 .text1+0x8
# OBJDUMP: 1a: R_SPARC_16 .text1+0x8
# OBJDUMP: 1c: R_SPARC_DISP16 .text1+0x8
.byte local1+4
.byte local1+4-.
.half local1+4
.half local1+4-.
# This test needs to placed last in the file
# ASM: .half a-.Ltmp{{.}}{{$}}
.half a - .
.byte a - .
a: