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
56 lines
1.7 KiB
ArmAsm
56 lines
1.7 KiB
ArmAsm
# RUN: not llvm-mc -filetype=obj -triple=x86_64 %s -o /dev/null 2>&1 | FileCheck %s --implicit-check-not=error:
|
|
|
|
## Test fixup value overflow diagnostics for non-PC-relative fixups
|
|
## with large immediate values that don't fit in the fixup field.
|
|
|
|
.intel_syntax noprefix
|
|
# CHECK: :[[#@LINE+1]]:10: error: value of 4294967296 is too large for field of 4 bytes
|
|
mov rcx, s4294967296
|
|
|
|
## GAS rejects [2147483648, 4294967295] for R_X86_64_32S
|
|
mov rcx, s4294967295
|
|
|
|
.long s4294967295
|
|
# CHECK: :[[#@LINE+1]]:7: error: value of 4294967296 is too large for field of 4 bytes
|
|
.long s4294967296
|
|
|
|
.quad s4294967296
|
|
|
|
# CHECK: :[[#@LINE+1]]:10: error: value of -4294967296 is too large for field of 4 bytes
|
|
mov rcx, sn4294967296
|
|
|
|
## GAS rejects [-4294967295, -2147483649] for R_X86_64_32S
|
|
mov rcx, sn4294967295
|
|
|
|
.long sn4294967295
|
|
# CHECK: :[[#@LINE+1]]:7: error: value of -4294967296 is too large for field of 4 bytes
|
|
.long sn4294967296
|
|
|
|
.set s4294967295, (1<<32)-1
|
|
.set s4294967296, 1<<32
|
|
.set sn4294967295, -(1<<32)+1
|
|
.set sn4294967296, -(1<<32)
|
|
|
|
.section rip_relative_fixups,"ax",@progbits
|
|
## RIP-relative addressing uses signed 32-bit displacement.
|
|
## Forward: 0x7fffffff fits, 0x80000000 overflows
|
|
mov eax, [rip + .Lend1]
|
|
.space 0x7fffffff
|
|
.Lend1:
|
|
|
|
# CHECK: :[[#@LINE+1]]:17: error: value of 2147483648 is too large for field of 4 bytes
|
|
mov eax, [rip + .Lend2]
|
|
.space 0x80000000
|
|
.Lend2:
|
|
|
|
## Backward: -0x80000000 fits, -0x80000001 overflows
|
|
## The mov instruction is 6 bytes, so .space 0x7ffffffa gives displacement -0x80000000.
|
|
.Lstart1:
|
|
.space 0x7ffffffa
|
|
mov eax, [rip + .Lstart1]
|
|
|
|
# CHECK: :[[#@LINE+3]]:17: error: value of -2147483649 is too large for field of 4 bytes
|
|
.Lstart2:
|
|
.space 0x7ffffffb
|
|
mov eax, [rip + .Lstart2]
|