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
82 lines
2.7 KiB
ArmAsm
82 lines
2.7 KiB
ArmAsm
// RUN: rm -rf %t && split-file %s %t && cd %t
|
|
// RUN: not llvm-mc -triple aarch64-elf -filetype=obj a.s -o /dev/null 2>&1 | FileCheck a.s
|
|
// RUN: not llvm-mc -triple aarch64-elf -filetype=obj b.s -o /dev/null 2>&1 | FileCheck b.s
|
|
|
|
//--- a.s
|
|
.data
|
|
b:
|
|
.fill 300
|
|
e:
|
|
.byte e - b
|
|
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: value evaluated as 300 is out of range.
|
|
// CHECK-NEXT: .byte e - b
|
|
// CHECK-NEXT: ^
|
|
|
|
//--- b.s
|
|
.section sec_x
|
|
start:
|
|
.space 5000
|
|
end:
|
|
add w0, w1, #(end - start)
|
|
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: fixup value out of range
|
|
// CHECK-NEXT: add w0, w1, #(end - start)
|
|
// CHECK-NEXT: ^
|
|
|
|
cmp w0, #(end - start)
|
|
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: fixup value out of range
|
|
// CHECK-NEXT: cmp w0, #(end - start)
|
|
// CHECK-NEXT: ^
|
|
|
|
negative:
|
|
add w0, w1, #(end - negative)
|
|
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: fixup value out of range
|
|
// CHECK-NEXT: add w0, w1, #(end - negative)
|
|
// CHECK-NEXT: ^
|
|
|
|
cmp w0, #(end - negative)
|
|
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: fixup value out of range
|
|
// CHECK-NEXT: cmp w0, #(end - negative)
|
|
// CHECK-NEXT: ^
|
|
|
|
add w0, w1, #(end - external)
|
|
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: symbol 'external' can not be undefined in a subtraction expression
|
|
// CHECK-NEXT: add w0, w1, #(end - external)
|
|
// CHECK-NEXT: ^
|
|
|
|
cmp w0, #(end - external)
|
|
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: symbol 'external' can not be undefined in a subtraction expression
|
|
// CHECK-NEXT: cmp w0, #(end - external)
|
|
// CHECK-NEXT: ^
|
|
|
|
add w0, w1, #:lo12:external - end
|
|
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: expected relocatable expression
|
|
// CHECK-NEXT: add w0, w1, #:lo12:external - end
|
|
|
|
cmp w0, #:lo12:external - end
|
|
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: expected relocatable expression
|
|
|
|
add w0, w1, #:got_lo12:external - end
|
|
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: expected relocatable expression
|
|
|
|
.section sec_y
|
|
end_across_sec:
|
|
add w0, w1, #(end_across_sec - start)
|
|
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: Cannot represent a difference across sections
|
|
// CHECK-NEXT: add w0, w1, #(end_across_sec - start)
|
|
// CHECK-NEXT: ^
|
|
|
|
cmp w0, #(end_across_sec - start)
|
|
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: Cannot represent a difference across sections
|
|
// CHECK-NEXT: cmp w0, #(end_across_sec - start)
|
|
// CHECK-NEXT: ^
|
|
|
|
add w0, w1, #(sec_y - sec_x)
|
|
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: Cannot represent a difference across sections
|
|
// CHECK-NEXT: add w0, w1, #(sec_y - sec_x)
|
|
// CHECK-NEXT: ^
|
|
|
|
cmp w0, #(sec_y - sec_x)
|
|
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: Cannot represent a difference across sections
|
|
// CHECK-NEXT: cmp w0, #(sec_y - sec_x)
|
|
// CHECK-NEXT: ^
|