Files
TheRock/compiler/amd-llvm/llvm/test/MC/ARM/thumb2-branch-ranges.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

103 lines
2.4 KiB
ArmAsm

@ RUN: not llvm-mc %s -triple thumbv7-linux-gnueabi -filetype=obj -o /dev/null 2>&1 | FileCheck %s
// Thumb2 unconditional branch has a range of +- 16 Megabytes. The
// conditional branch has a range of +- 1 Megabyte. We should give
// an error message if we evaluate the expression at assembly
// time and it is out of range.
.syntax unified
.thumb
b.w end
.space 0xfffffe
end:
b.w end2
.space 0xfffffe
.global end2
end2:
// branch to arm function uses relocation
b.w end3
.space 0x1000000
.global end3
.type end3, %function
.arm
end3: bx lr
.thumb
// branch to thumb function is resolved at assembly time
// CHECK-NOT: error:
// CHECK: [[@LINE+2]]:[[#]]: error: Relocation out of range
// CHECK-LABEL: b.w end4
b.w end4
.space 0x1000000
.thumb_func
end4:
beq.w end5
.space 0xffffc
end5:
// conditional branch to arm function uses relocation
beq.w end6
.arm
.type end6, %function
.space 0x100000
end6: bx lr
.thumb
// conditional branch to thumb function resolved at assembly time
// CHECK-NOT: error:
// CHECK: [[@LINE+2]]:[[#]]: error: Relocation out of range
// CHECK-LABEL: beq.w end7
beq.w end7
.space 0x100000
end7:
start:
.space 0xfffffc
b.w start
.arm
.global start2
.type start2, %function
start2:
.space 0x1000000
.thumb
// branch to arm function uses relocation
b.w start2
start3:
.space 0x1000000
// branch to thumb function resolved at assembly time
// CHECK-NOT: error:
// CHECK: [[@LINE+2]]:[[#]]: error: Relocation out of range
// CHECK-LABEL: b.w start3
b.w start3
start4:
.space 0xffffc
b.w start4
.arm
.global start5
.type start5, %function
start5:
.space 0x100000
.thumb
// conditional branch to arm function uses relocation
beq.w start5
start6:
.space 0x100000
// branch to thumb function resolved at assembly time
// CHECK-NOT: error:
// CHECK: [[@LINE+2]]:[[#]]: error: Relocation out of range
// CHECK-LABEL: beq.w start6
beq.w start6
start7:
// branch to thumb function resolved at assembly time
// CHECK: [[#@LINE+1]]:[[#]]: error: Relocation out of range
b.w start8 - start7 + 0x1000000
start8: