Files
TheRock/rocm-libraries/shared/stinkytofu/tests/filecheck/CFGBuilderPass_test.stir
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

29 lines
1.4 KiB
Plaintext

# RUN: %stinkytofu-opt --arch gfx1250 %s --CFGBuilderPass --print-output
#
# CFGBuilderPass: a mid-block branch splits its home block into a tail piece,
# named "<base>_<N>". That synthetic name can collide with a real Tensile label
# of the same spelling: here the tail of ^label_TDMInitA would be named
# ^label_TDMInitA_1, clashing with the real ^label_TDMInitA_1 that follows.
# A collision makes two blocks share a name, so buildCFGEdges resolves branches
# to the wrong block and corrupts the CFG. The pass must give the tail a unique
# name (^label_TDMInitA_1_1) and keep the fall-through chain correct:
# ^label_TDMInitA -> ^label_TDMInitA_1_1 -> ^label_TDMInitA_1 -> ^label_end
#
# CHECK-LABEL: ^label_TDMInitA:{{$}}
# CHECK: Successors: ^label_end, ^label_TDMInitA_1_1{{$}}
# CHECK-LABEL: ^label_TDMInitA_1_1:{{$}}
# CHECK: Successors: ^label_TDMInitA_1{{$}}
# CHECK-LABEL: ^label_TDMInitA_1:{{$}}
# CHECK: Successors: ^label_end{{$}}
# CHECK-LABEL: ^label_end:{{$}}
# CHECK: s_endpgm
label_TDMInitA:
v0 = "st.v_add_f32"(v1, v2) { issueCycles = 1, latencyCycles = 5 }
"st.s_cbranch_scc1"(label_end, SCC0) { issueCycles = 1, latencyCycles = 1 }
v3 = "st.v_add_f32"(v1, v2) { issueCycles = 1, latencyCycles = 5 }
label_TDMInitA_1:
v4 = "st.v_add_f32"(v1, v2) { issueCycles = 1, latencyCycles = 5 }
label_end:
"st.s_endpgm"() { issueCycles = 1, latencyCycles = 1 }