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
60 lines
2.2 KiB
ArmAsm
60 lines
2.2 KiB
ArmAsm
// REQUIRES: arm
|
|
// This test intentionally checks for fatal errors, and fatal errors aren't supported for testing when main is run twice.
|
|
// XFAIL: main-run-twice
|
|
// RUN: rm -rf %t && split-file %s %t
|
|
// RUN: llvm-mc -arm-add-build-attributes -filetype=obj -triple=armv6m-none-eabi %t/a.s -o %t/a.o
|
|
// RUN: ld.lld --no-rosegment --script %t/a.t %t/a.o -o %t/a
|
|
// RUN: llvm-objdump --no-print-imm-hex --no-show-raw-insn -d %t/a --triple=armv6m-none-eabi | FileCheck %s
|
|
// RUN: not ld.lld --no-rosegment --script %t/a.t %t/a.o -o %t/a2 --pie 2>&1 | FileCheck --check-prefix=CHECK-PI %s
|
|
// RUN: rm -f %t/a %t/a2
|
|
|
|
// Range extension thunks for Arm Architecture v6m. Only Thumb instructions
|
|
// are permitted which limits the access to instructions that can access the
|
|
// high registers (r8 - r15), this means that the thunks have to spill
|
|
// low registers (r0 - r7) in order to perform the transfer of control.
|
|
|
|
//--- a.t
|
|
SECTIONS {
|
|
.text_low 0x11345670 : { *(.text_low) }
|
|
.text_high 0x12345678 : { *(.text_high) }
|
|
}
|
|
|
|
//--- a.s
|
|
// The 'y' on the .section directive means that this section is eXecute Only code
|
|
.syntax unified
|
|
.section .text_low, "axy", %progbits
|
|
.thumb
|
|
.type _start, %function
|
|
.balign 4
|
|
.globl _start
|
|
_start:
|
|
bl far
|
|
|
|
.section .text_high, "ax", %progbits
|
|
.globl far
|
|
.type far, %function
|
|
far:
|
|
bx lr
|
|
|
|
// CHECK: Disassembly of section .text_low:
|
|
// CHECK-EMPTY:
|
|
// CHECK-NEXT: <_start>:
|
|
// CHECK-NEXT: 11345670: bl 0x11345674 <__Thumbv6MABSXOLongThunk_far>
|
|
// CHECK: <__Thumbv6MABSXOLongThunk_far>:
|
|
// CHECK-NEXT: push {r0, r1}
|
|
// CHECK-NEXT: movs r0, #18
|
|
// CHECK-NEXT: lsls r0, r0, #8
|
|
// CHECK-NEXT: adds r0, #52
|
|
// CHECK-NEXT: lsls r0, r0, #8
|
|
// CHECK-NEXT: adds r0, #86
|
|
// CHECK-NEXT: lsls r0, r0, #8
|
|
// CHECK-NEXT: adds r0, #121
|
|
// CHECK-NEXT: str r0, [sp, #4]
|
|
// CHECK-NEXT: pop {r0, pc}
|
|
// CHECK: Disassembly of section .text_high:
|
|
// CHECK-EMPTY:
|
|
// CHECK-NEXT: <far>:
|
|
// CHECK-NEXT: 12345678: bx lr
|
|
|
|
// CHECK-PI: error: relocation R_ARM_THM_CALL to far not supported for Armv6-M targets for position independent and execute only code
|