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
96 lines
3.1 KiB
ArmAsm
96 lines
3.1 KiB
ArmAsm
# RUN: llvm-mc -triple riscv64-unknown-linux-gnu -filetype obj %s -o %t
|
|
# RUN: llvm-readobj -r %t | FileCheck %s
|
|
# RUN: llvm-objdump -s %t | FileCheck %s --check-prefix=CONTENT
|
|
|
|
# CHECK: Relocations [
|
|
# CHECK-NEXT: Section ({{.*}}) .rela.note {
|
|
# CHECK-NEXT: 0x0 R_RISCV_ADD64 extern 0x0
|
|
# CHECK-NEXT: 0x0 R_RISCV_SUB64 note 0x0
|
|
# CHECK-NEXT: }
|
|
# CHECK-NEXT: Section ({{.*}}) .rela.rodata {
|
|
# CHECK-NEXT: 0x0 R_RISCV_ADD64 extern 0x0
|
|
# CHECK-NEXT: 0x0 R_RISCV_SUB64 rodata 0x0
|
|
# CHECK-NEXT: }
|
|
# CHECK-NEXT: Section ({{.*}}) .rela.alloc_w {
|
|
# CHECK-NEXT: 0x0 R_RISCV_ADD64 extern 0x0
|
|
# CHECK-NEXT: 0x0 R_RISCV_SUB64 w 0x0
|
|
# CHECK-NEXT: 0x8 R_RISCV_ADD64 w 0x0
|
|
# CHECK-NEXT: 0x8 R_RISCV_SUB64 extern 0x0
|
|
# CHECK-NEXT: 0x10 R_RISCV_ADD32 x 0x0
|
|
# CHECK-NEXT: 0x10 R_RISCV_SUB32 w 0x0
|
|
# CHECK-NEXT: 0x18 R_RISCV_ADD32 .L.str 0x0
|
|
# CHECK-NEXT: 0x18 R_RISCV_SUB32 w 0x0
|
|
# CHECK-NEXT: }
|
|
# CHECK-NEXT: Section ({{.*}}) .rela.alloc_x {
|
|
# CHECK-NEXT: 0x0 R_RISCV_ADD64 y 0x0
|
|
# CHECK-NEXT: 0x0 R_RISCV_SUB64 x 0x0
|
|
# CHECK-NEXT: }
|
|
# CHECK-NEXT: Section ({{.*}}) .rela.alloc_y {
|
|
# CHECK-NEXT: 0x0 R_RISCV_ADD64 x 0x0
|
|
# CHECK-NEXT: 0x0 R_RISCV_SUB64 y 0x0
|
|
# CHECK-NEXT: }
|
|
# CHECK-NEXT: Section ({{.*}}) .rela.nonalloc_w {
|
|
# CHECK-NEXT: 0x0 R_RISCV_ADD64 extern 0x0
|
|
# CHECK-NEXT: 0x0 R_RISCV_SUB64 nw 0x0
|
|
# CHECK-NEXT: 0x8 R_RISCV_ADD64 nw 0x0
|
|
# CHECK-NEXT: 0x8 R_RISCV_SUB64 extern 0x0
|
|
# CHECK-NEXT: }
|
|
# CHECK-NEXT: Section ({{.*}}) .rela.nonalloc_x {
|
|
# CHECK-NEXT: 0x0 R_RISCV_ADD64 ny 0x0
|
|
# CHECK-NEXT: 0x0 R_RISCV_SUB64 nx 0x0
|
|
# CHECK-NEXT: }
|
|
# CHECK-NEXT: Section ({{.*}}) .rela.nonalloc_y {
|
|
# CHECK-NEXT: 0x0 R_RISCV_ADD64 nx 0x0
|
|
# CHECK-NEXT: 0x0 R_RISCV_SUB64 ny 0x0
|
|
# CHECK-NEXT: }
|
|
# CHECK-NEXT: ]
|
|
|
|
# CONTENT: Contents of section .alloc_w:
|
|
# CONTENT-NEXT: 0000 00000000 00000000 00000000 00000000
|
|
# CONTENT-NEXT: 0010 00000000 1c000000 00000000
|
|
|
|
.section .note,"a",@note; note:
|
|
.quad extern-note
|
|
.section .rodata,"a",@progbits; rodata:
|
|
.quad extern-rodata
|
|
|
|
.section .alloc_w,"aw",@progbits; w:
|
|
.quad extern-w # extern is undefined
|
|
.quad w-extern
|
|
.long x-w # A is later defined in another section
|
|
.long w1-w # A is later defined in the same section
|
|
.long .L.str-w # A is temporary
|
|
w1:
|
|
|
|
.section .alloc_x,"aw",@progbits; x:
|
|
.quad y-x
|
|
.section .alloc_y,"aw",@progbits; y:
|
|
.quad x-y
|
|
|
|
.section .nonalloc_w; nw:
|
|
.quad extern-nw
|
|
.quad nw-extern
|
|
.section .nonalloc_x; nx:
|
|
.quad ny-nx
|
|
.section .nonalloc_y; ny:
|
|
.quad nx-ny
|
|
|
|
## -gdwarf-aranges generated assembly expects no relocation.
|
|
## Otherwise, a .Lsec_end0 symbol (defined at the end of .rodata.str1.1)
|
|
## will be rejected by linkers.
|
|
.section .rodata.str1.1,"aMS",@progbits,1
|
|
.L.str:
|
|
.asciz "hello"
|
|
.section .rodata.str1.1,"aMS",@progbits,1
|
|
.Lsec_end0:
|
|
.section .debug_aranges,"",@progbits
|
|
.quad .Lsec_end0-.L.str
|
|
|
|
## .apple_names/.apple_types are fixed-size and do not need fixups.
|
|
## llvm-dwarfdump --apple-names does not process R_RISCV_{ADD,SUB}32 in them.
|
|
## See llvm/test/DebugInfo/Generic/accel-table-hash-collisions.ll
|
|
.section .apple_types
|
|
.word 0
|
|
.word .Ltypes0-.apple_types
|
|
.Ltypes0:
|