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
106 lines
1.8 KiB
NASM
106 lines
1.8 KiB
NASM
; RUN: llvm-ml64 -filetype=s %s /Fo - | FileCheck %s
|
|
|
|
.data
|
|
|
|
a BYTE ?
|
|
|
|
.code
|
|
|
|
repeat_test PROC
|
|
; CHECK-LABEL: repeat_test:
|
|
REPEAT 1+2
|
|
xor eax, 0
|
|
ENDM
|
|
; CHECK: xor eax, 0
|
|
; CHECK: xor eax, 0
|
|
; CHECK: xor eax, 0
|
|
; CHECK-NOT: xor eax, 0
|
|
repeat_test ENDP
|
|
|
|
while_test PROC
|
|
; CHECK-LABEL: while_test:
|
|
C = 1
|
|
WHILE C <= 3
|
|
xor eax, C
|
|
C = C + 1
|
|
ENDM
|
|
; CHECK: xor eax, 1
|
|
; CHECK: xor eax, 2
|
|
; CHECK: xor eax, 3
|
|
; CHECK-NOT: xor eax,
|
|
while_test ENDP
|
|
|
|
for_test PROC
|
|
; CHECK-LABEL: for_test:
|
|
FOR arg, <'O', 'K', 13, 10>
|
|
mov al, arg
|
|
ENDM
|
|
; CHECK: mov al, 79
|
|
; CHECK: mov al, 75
|
|
; CHECK: mov al, 13
|
|
; CHECK: mov al, 10
|
|
; CHECK-NOT: mov al,
|
|
for_test ENDP
|
|
|
|
for_without_substitution_test PROC
|
|
; CHECK-LABEL: for_without_substitution_test:
|
|
FOR a, <'O', 'K', 13, 10>
|
|
mov al, 'a'
|
|
ENDM
|
|
; CHECK: mov al, 97
|
|
; CHECK: mov al, 97
|
|
; CHECK: mov al, 97
|
|
; CHECK: mov al, 97
|
|
; CHECK-NOT: mov al,
|
|
for_without_substitution_test ENDP
|
|
|
|
for_with_default_test PROC
|
|
; CHECK-LABEL: for_with_default_test:
|
|
FOR arg:=<'K'>, <'O', ,, 13,>
|
|
mov al, arg
|
|
ENDM
|
|
; CHECK: mov al, 79
|
|
; CHECK: mov al, 75
|
|
; CHECK: mov al, 75
|
|
; CHECK: mov al, 13
|
|
; CHECK: mov al, 75
|
|
; CHECK-NOT: mov al,
|
|
for_with_default_test ENDP
|
|
|
|
forc_test PROC
|
|
; CHECK-LABEL: forc_test:
|
|
FORC arg, <OK>
|
|
mov al, "&arg"
|
|
ENDM
|
|
; CHECK: mov al, 79
|
|
; CHECK: mov al, 75
|
|
; CHECK-NOT: mov al,
|
|
forc_test ENDP
|
|
|
|
forc_improper_test PROC
|
|
; CHECK-LABEL: forc_improper_test:
|
|
FORC arg, A-; OK
|
|
mov al, "&arg"
|
|
ENDM
|
|
; CHECK: mov al, 65
|
|
; CHECK: mov al, 45
|
|
; CHECK: mov al, 59
|
|
; CHECK-NOT: mov al,
|
|
forc_improper_test ENDP
|
|
|
|
nested_substitution_test PROC
|
|
; CHECK-LABEL: nested_substitution_test:
|
|
FOR s, <A-, OK>
|
|
FORC c, <s>
|
|
mov al, '&c'
|
|
ENDM
|
|
ENDM
|
|
; CHECK: mov al, 65
|
|
; CHECK: mov al, 45
|
|
; CHECK: mov al, 79
|
|
; CHECK: mov al, 75
|
|
; CHECK-NOT: mov al,
|
|
nested_substitution_test ENDP
|
|
|
|
end
|