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
52 lines
1.5 KiB
ArmAsm
52 lines
1.5 KiB
ArmAsm
# REQUIRES: hexagon
|
|
# RUN: rm -rf %t && split-file %s %t
|
|
# RUN: llvm-mc -filetype=obj -triple=hexagon-unknown-elf %t/a.s -o %t/a.o
|
|
# RUN: ld.lld -T %t/lds %t/a.o -o %t/a
|
|
# RUN: llvm-objdump -d --no-show-raw-insn %t/a 2>&1 | \
|
|
# RUN: FileCheck --check-prefixes=CHECK-NONPIC,CHECK %s
|
|
# RUN: llvm-mc -filetype=obj \
|
|
# RUN: -triple=hexagon-unknown-elf %t/a.s -o %t/a.o
|
|
|
|
# RUN: ld.lld -T %t/lds --pie %t/a.o -o %t/a
|
|
# RUN: llvm-objdump -d --no-show-raw-insn %t/a 2>&1 | \
|
|
# RUN: FileCheck --check-prefixes=CHECK-PIC,CHECK %s
|
|
|
|
#--- a.s
|
|
.section .text_low, "ax", %progbits
|
|
.globl main
|
|
.type main, @function
|
|
main:
|
|
call myfn
|
|
jumpr r31
|
|
.size main, .-main
|
|
|
|
.section .text_high, "ax", %progbits
|
|
.globl myfn
|
|
.type myfn, @function
|
|
myfn:
|
|
jumpr r31
|
|
.size myfn, .-myfn
|
|
|
|
# CHECK: Disassembly of section .text_low:
|
|
|
|
# CHECK: <main>:
|
|
# CHECK-NEXT: 200b4: { call 0x200bc <__hexagon_thunk_myfn_from_.text.thunk> }
|
|
# CHECK-NEXT: { jumpr r31 }
|
|
|
|
# CHECK: <__hexagon_thunk_myfn_from_.text.thunk>:
|
|
# CHECK-NONPIC-NEXT: 200bc: { immext(#0x1000000)
|
|
# CHECK-NONPIC-NEXT: jump 0x10200bc <myfn> }
|
|
# CHECK-PIC-NEXT: 200bc: { immext(#0x1000000)
|
|
# CHECK-PIC-NEXT: r14 = add(pc,##0x1000000) }
|
|
# CHECK-PIC-NEXT: { jumpr r14 }
|
|
|
|
# CHECK: Disassembly of section .text_high:
|
|
# CHECK: <myfn>:
|
|
# CHECK-NEXT: 10200bc: { jumpr r31 }
|
|
|
|
#--- lds
|
|
SECTIONS {
|
|
.text_low 0x200b4: { *(.text_low) }
|
|
.text_high 0x10200bc : { *(.text_high) }
|
|
}
|