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
47 lines
1.8 KiB
ArmAsm
47 lines
1.8 KiB
ArmAsm
# RUN: %stinkytofu-opt --arch gfx1250 %s --emit-asm
|
|
#
|
|
# IRConverter directive round-trip:
|
|
#
|
|
# (a) TEXTBLOCK pass-through: arbitrary text that the parser cannot decode
|
|
# as an instruction (e.g. /* ... */ comment blocks, banner-style
|
|
# comments) is wrapped as an asm_directive with a "TEXTBLOCK" sentinel
|
|
# by RawAsmParser::makeTextBlock. IRConverter must recognize the
|
|
# sentinel and set AsmDirectiveKind::TEXTBLOCK so the emitter prints
|
|
# the text verbatim, instead of letting the kind default to SET (whose
|
|
# emitter concatenates name + symbol and would print
|
|
# "TEXTBLOCK <raw text>").
|
|
#
|
|
# (b) .set value round-trip: RawAsmParser packs `.set` as
|
|
# srcRegs = {".set", symbol, value}. IRConverter must wire srcRegs[2]
|
|
# into AsmDirective::value; otherwise the SET emitter branch (which
|
|
# prints "name symbol[, value]") drops the assignment and a line like
|
|
# ".set vgprValuMXSA_X0_I0_BASE, vgprMXSBase+0" round-trips as the
|
|
# incomplete ".set vgprValuMXSA_X0_I0_BASE".
|
|
#
|
|
# Banner-style and inline /* ... */ comments must appear verbatim with no
|
|
# "TEXTBLOCK" sentinel leaking anywhere into the output.
|
|
#
|
|
# CHECK-NOT: TEXTBLOCK
|
|
# CHECK: /* Mapping of Acc register -> C Vgpr register */
|
|
# CHECK: /******************************************/
|
|
# CHECK: /* Begin Kernel */
|
|
# CHECK: /******************************************/
|
|
# CHECK: .set vgprBase, 0
|
|
# CHECK: .set vgprValuMXSA_X0_I0_BASE, vgprBase+0
|
|
# CHECK: v_mov_b32 v0, v1
|
|
# CHECK-NOT: TEXTBLOCK
|
|
|
|
.amdgcn_target "amdgcn-amd-amdhsa--gfx1250"
|
|
.text
|
|
|
|
/* Mapping of Acc register -> C Vgpr register */
|
|
/******************************************/
|
|
/* Begin Kernel */
|
|
/******************************************/
|
|
|
|
.set vgprBase, 0
|
|
.set vgprValuMXSA_X0_I0_BASE, vgprBase+0
|
|
|
|
v_mov_b32 v0, v1
|
|
s_endpgm
|