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
88 lines
1.6 KiB
ArmAsm
88 lines
1.6 KiB
ArmAsm
# RUN: not llvm-mc -triple x86_64-unknown-unknown %s 2>&1 | FileCheck %s --check-prefix=ASM-ERR --implicit-check-not=error:
|
|
# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s | llvm-objdump -j .data -s - | FileCheck %s --check-prefix=OBJDATA
|
|
# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s | llvm-objdump -j .text -s - | FileCheck %s --check-prefix=OBJTEXT
|
|
.data
|
|
|
|
# OBJDATA: Contents of section .data
|
|
# OBJDATA-NEXT: 0000 aa01aa05 06000000 08ff
|
|
|
|
foo1:
|
|
# ASM-ERR: :[[#@LINE+1]]:5: error: expected absolute expression
|
|
.if . - foo1 == 0
|
|
.byte 0xaa
|
|
.else
|
|
.byte 0x00
|
|
.endif
|
|
|
|
foo2:
|
|
.byte 1
|
|
# ASM-ERR: :[[#@LINE+1]]:5: error: expected absolute expression
|
|
.if foo2 - . == -1
|
|
.byte 0xaa
|
|
.else
|
|
.byte 0x00
|
|
.endif
|
|
|
|
foo3:
|
|
.byte 5
|
|
# ASM-ERR: [[@LINE+1]]:5: error: expected absolute expression
|
|
.if . - foo3 == 1
|
|
.byte 6
|
|
.else
|
|
.byte 7
|
|
.endif
|
|
|
|
foo4:
|
|
.byte 0
|
|
.space 2
|
|
# ASM-ERR: :[[#@LINE+1]]:5: error: expected absolute expression
|
|
.if . - foo4 == 3
|
|
.byte 8
|
|
.else
|
|
.byte 9
|
|
.endif
|
|
|
|
.byte 0xff
|
|
|
|
# nop is a fixed size instruction so this should pass.
|
|
|
|
# OBJTEXT: Contents of section .text
|
|
# OBJTEXT-NEXT: 0000 909090ff 34250000 00009090 90785634
|
|
# OBJTEXT-NEXT: 0010 12785634 1290
|
|
|
|
.text
|
|
text1:
|
|
# ASM-ERR: [[@LINE+1]]:5: error: expected absolute expression
|
|
.if . - text1 == 0
|
|
nop
|
|
.endif
|
|
|
|
text2:
|
|
nop
|
|
# ASM-ERR: [[@LINE+1]]:5: error: expected absolute expression
|
|
.if . - text2 == 1
|
|
nop
|
|
.else
|
|
ret
|
|
.endif
|
|
push gs
|
|
nop
|
|
nop
|
|
nop
|
|
# No additional errors.
|
|
#
|
|
# ASM-ERR-NOT: {{[0-9]+}}:{{[0-9]+}}: error:
|
|
|
|
|
|
text3:
|
|
.long 0x12345678
|
|
text4:
|
|
.fill (text4-text3)/4, 4, 0x12345678
|
|
nop
|
|
|
|
|
|
|
|
|
|
|
|
|