Files
TheRock/compiler/amd-llvm/lld/test/ELF/arm-execute-only-mixed.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

56 lines
1.9 KiB
ArmAsm

// REQUIRES: arm
// RUN: rm -rf %t && split-file %s %t && cd %t
// RUN: llvm-mc -filetype=obj -triple=armv7 start.s -o start.o
// RUN: llvm-mc -filetype=obj -triple=armv7 xo.s -o xo.o
// RUN: llvm-mc -filetype=obj -triple=armv7 rx.s -o rx.o
// RUN: ld.lld start.o xo.o -o xo
// RUN: ld.lld start.o rx.o -o rx-default
// RUN: ld.lld --xosegment start.o rx.o -o rx-xosegment
// RUN: ld.lld --no-xosegment start.o rx.o -o rx-no-xosegment
// RUN: llvm-readelf -l xo | FileCheck --check-prefix=CHECK-XO %s
// RUN: llvm-readelf -l rx-default | FileCheck --check-prefix=CHECK-MERGED %s
// RUN: llvm-readelf -l rx-xosegment | FileCheck --check-prefix=CHECK-SEPARATE %s
// RUN: llvm-readelf -l rx-no-xosegment | FileCheck --check-prefix=CHECK-MERGED %s
// CHECK-XO: PHDR
// CHECK-XO-NEXT: LOAD
// CHECK-XO-NEXT: LOAD 0x0000b4 0x000200b4 0x000200b4 0x0000c 0x0000c E 0x10000
/// Index should match the index of the LOAD segment above.
// CHECK-XO: 02 .text .foo
// CHECK-MERGED: PHDR
// CHECK-MERGED-NEXT: LOAD
// CHECK-MERGED-NEXT: LOAD 0x0000b4 0x000200b4 0x000200b4 0x0000c 0x0000c R E 0x10000
/// Index should match the index of the LOAD segment above.
// CHECK-MERGED: 02 .text .foo
// CHECK-SEPARATE: PHDR
// CHECK-SEPARATE-NEXT: LOAD
// CHECK-SEPARATE-NEXT: LOAD 0x0000d4 0x000200d4 0x000200d4 0x00008 0x00008 E 0x10000
// CHECK-SEPARATE-NEXT: LOAD 0x0000dc 0x000300dc 0x000300dc 0x00004 0x00004 R E 0x10000
/// Index should match the index of the LOAD segment above.
// CHECK-SEPARATE: 02 .text
// CHECK-SEPARATE: 03 .foo
//--- start.s
.section .text,"axy",%progbits,unique,0
.global _start
_start:
bl foo
bx lr
//--- xo.s
.section .foo,"axy",%progbits,unique,0
.global foo
foo:
bx lr
//--- rx.s
/// Ensure that the implicitly-created .text section has the SHF_ARM_PURECODE flag.
.section .text,"axy",%progbits,unique,0
.section .foo,"ax",%progbits,unique,0
.global foo
foo:
bx lr