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
68 lines
2.2 KiB
ArmAsm
68 lines
2.2 KiB
ArmAsm
// RUN: not llvm-mc -triple armv7-apple-darwin -filetype=obj %s 2>&1 | FileCheck %s
|
|
|
|
// Check that the relocation size is valid.
|
|
// Check lower bound of edge case.
|
|
_foo1_valid:
|
|
// CHECK-NOT: :[[@LINE+1]]:{{[0-9]+}}: error: Relocation out of range
|
|
b _foo1_valid+0x2000004
|
|
// Check outside of range of the largest accepted positive number
|
|
_foo1:
|
|
// CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Relocation out of range
|
|
b _foo1+0x2000008
|
|
|
|
// Check Same as above, for smallest negative value
|
|
_foo2_valid:
|
|
// CHECK-NOT: :[[@LINE+1]]:{{[0-9]+}}: error: Relocation out of range
|
|
b _foo2_valid-0x1FFFFF8
|
|
_foo2:
|
|
// CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Relocation out of range
|
|
b _foo2-0x1FFFFFC
|
|
|
|
// Edge case - subtracting positive number
|
|
_foo3:
|
|
// CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Relocation out of range
|
|
b _foo3-0x2000010
|
|
|
|
// Edge case - adding negative number
|
|
_foo4:
|
|
// CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Relocation out of range
|
|
b _foo4+0x2000008
|
|
|
|
_foo5:
|
|
// CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Relocation out of range
|
|
bl _foo5+0x2000008
|
|
|
|
_foo6:
|
|
// CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Relocation out of range
|
|
blx _foo6+0x2000008
|
|
|
|
// blx instruction is aligned to 16-bits.
|
|
_foo7_blx:
|
|
// CHECK-NOT:[[@LINE+1]]:{{[0-9]+}}: error: Relocation not aligned
|
|
blx _foo7_blx+0x1FFFFFE
|
|
|
|
// Other branch instructions require 32-bit alignment.
|
|
_foo7:
|
|
// CHECK:[[@LINE+1]]:{{[0-9]+}}: error: Relocation not aligned
|
|
bl _foo7_blx+0x1FFFFFE
|
|
|
|
_foo8:
|
|
// CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Relocation out of range
|
|
ble _foo8+0x2000008
|
|
|
|
_foo9:
|
|
// CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Relocation out of range
|
|
beq _foo9+0x2000008
|
|
|
|
// Check that the relocation alignment is valid.
|
|
// CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Relocation not aligned
|
|
bl _foo1+0x101
|
|
// CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Relocation not aligned
|
|
blx _foo1+0x101
|
|
// CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Relocation not aligned
|
|
b _foo1+0x101
|
|
// CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Relocation not aligned
|
|
ble _foo1+0x101
|
|
// CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: Relocation not aligned
|
|
beq _foo1+0x101
|