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
1.9 KiB
ArmAsm
66 lines
1.9 KiB
ArmAsm
// REQUIRES: arm
|
|
// RUN: split-file %s %t
|
|
// RUN: llvm-mc -arm-add-build-attributes -filetype=obj -triple=thumbv7a-none-linux-gnueabi %t/test.s -o %t.o
|
|
// RUN: ld.lld --script %t/script %t.o -o %t2
|
|
// RUN: llvm-objdump --no-print-imm-hex --no-show-raw-insn -d %t2 | FileCheck %s
|
|
|
|
// RUN: llvm-mc -arm-add-build-attributes -filetype=obj -triple=thumbv7aeb-none-linux-gnueabi -mcpu=cortex-a8 %t/test.s -o %t.o
|
|
// RUN: ld.lld --script %t/script %t.o -o %t2
|
|
// RUN: llvm-objdump --no-print-imm-hex --no-show-raw-insn -d %t2 | FileCheck %s
|
|
// RUN: ld.lld --be8 --script %t/script %t.o -o %t2
|
|
// RUN: llvm-objdump --no-print-imm-hex --no-show-raw-insn -d %t2 | FileCheck %s
|
|
|
|
/// Test that we can reuse thunks between Arm and Thumb callers
|
|
/// using a BL. Expect two thunks, one for far, one for far2.
|
|
|
|
//--- script
|
|
SECTIONS {
|
|
.text 0x10000 : { *(.text) }
|
|
.text.far 0x10000000 : AT (0x10000000) { *(.far) }
|
|
}
|
|
|
|
//--- test.s
|
|
|
|
.syntax unified
|
|
.text
|
|
.globl _start
|
|
.type _start, %function
|
|
.arm
|
|
_start:
|
|
bl far
|
|
.thumb
|
|
bl far
|
|
bl far2
|
|
.arm
|
|
bl far2
|
|
|
|
// CHECK: 00010000 <_start>:
|
|
// CHECK-NEXT: 10000: bl 0x10010 <__ARMv7ABSLongThunk_far>
|
|
// CHECK-NEXT: 10004: blx 0x10010 <__ARMv7ABSLongThunk_far>
|
|
// CHECK-NEXT: 10008: bl 0x1001c <__Thumbv7ABSLongThunk_far2>
|
|
// CHECK-NEXT: 1000c: blx 0x1001c <__Thumbv7ABSLongThunk_far2>
|
|
// CHECK: 00010010 <__ARMv7ABSLongThunk_far>:
|
|
// CHECK-NEXT: 10010: movw r12, #0
|
|
// CHECK-NEXT: 10014: movt r12, #4096
|
|
// CHECK-NEXT: 10018: bx r12
|
|
// CHECK: 0001001c <__Thumbv7ABSLongThunk_far2>:
|
|
// CHECK-NEXT: 1001c: movw r12, #4
|
|
// CHECK-NEXT: 10020: movt r12, #4096
|
|
// CHECK-NEXT: 10024: bx r12
|
|
|
|
.section .text.far, "ax", %progbits
|
|
.globl far
|
|
.type far, %function
|
|
far:
|
|
bx lr
|
|
.globl far2
|
|
.type far2, %function
|
|
far2:
|
|
bx lr
|
|
|
|
// CHECK: Disassembly of section .text.far:
|
|
// CHECK: 10000000 <far>:
|
|
// CHECK-NEXT: 10000000: bx lr
|
|
// CHECK: 10000004 <far2>:
|
|
// CHECK-NEXT: 10000004: bx lr
|