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
91 lines
1.4 KiB
ArmAsm
91 lines
1.4 KiB
ArmAsm
// RUN: llvm-mc -triple i386-apple-darwin10 %s 2>&1 | FileCheck %s
|
|
|
|
.macro abc a b:vararg
|
|
.globl "\a, \b"
|
|
.endm
|
|
|
|
// CHECK: .globl "zed0, zed1, zed2"
|
|
abc zed0, zed1, zed2
|
|
|
|
.purgem abc
|
|
|
|
.macro ifcc arg:vararg
|
|
.if cc
|
|
\arg
|
|
.endif
|
|
.endm
|
|
|
|
.macro ifcc2 arg0 arg1:vararg
|
|
.if cc
|
|
movl \arg0, \arg1
|
|
.endif
|
|
.endm
|
|
|
|
.macro ifcc3 arg0, arg1:vararg
|
|
.if cc
|
|
movl \arg0, \arg1
|
|
.endif
|
|
.endm
|
|
|
|
.macro ifcc4 arg0, arg1:vararg
|
|
.if cc
|
|
movl \arg1, \arg0
|
|
.endif
|
|
.endm
|
|
|
|
.text
|
|
|
|
// CHECK: movl %esp, %ebp
|
|
// CHECK: subl $0, %esp
|
|
// CHECK: movl %eax, %ebx
|
|
// CHECK: movl %ecx, %ebx
|
|
// CHECK: movl %ecx, %eax
|
|
// CHECK: movl %eax, %ecx
|
|
// CHECK: movl %ecx, %eax
|
|
// CHECK: movl %eax, %ecx
|
|
.set cc,1
|
|
ifcc movl %esp, %ebp
|
|
subl $0, %esp
|
|
|
|
ifcc2 %eax, %ebx
|
|
ifcc2 %ecx, %ebx
|
|
ifcc3 %ecx, %eax
|
|
ifcc3 %eax, %ecx
|
|
ifcc4 %eax, %ecx ## test
|
|
ifcc4 %ecx, %eax ## test
|
|
|
|
// CHECK-NOT: movl
|
|
// CHECK: subl $1, %esp
|
|
.set cc,0
|
|
ifcc movl, %esp, %ebp
|
|
subl $1, %esp
|
|
|
|
.macro abc arg:vararg=nop
|
|
\arg
|
|
.endm
|
|
|
|
.macro abcd arg0=%eax, arg1:vararg=%ebx
|
|
movl \arg0, \arg1
|
|
.endm
|
|
|
|
.text
|
|
|
|
// CHECK: nop
|
|
abc
|
|
// CHECK: movl %eax, %ebx
|
|
abcd ,
|
|
|
|
.macro .make_macro start, end, name, body:vararg
|
|
\start \name
|
|
\body
|
|
\end
|
|
.endmacro
|
|
|
|
.make_macro .macro,.endmacro,.mybyte,.byte $0, $2, $1
|
|
|
|
.data
|
|
// CHECK: .byte 10
|
|
// CHECK: .byte 12
|
|
// CHECK: .byte 11
|
|
.mybyte 10,11,12
|