Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/AMDGPU/agpr-copy-propagation.mir
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

113 lines
4.8 KiB
YAML

# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -mtriple=amdgcn -mcpu=gfx908 %s -o - -run-pass machine-cp -verify-machineinstrs | FileCheck -check-prefix=GFX908 %s
# RUN: llc -mtriple=amdgcn -mcpu=gfx90a %s -o - -run-pass machine-cp -verify-machineinstrs | FileCheck -check-prefix=GFX90A %s
---
name: propagate_agpr
body: |
bb.0:
successors:
liveins: $agpr0
; GFX908-LABEL: name: propagate_agpr
; GFX908: liveins: $agpr0
; GFX908-NEXT: {{ $}}
; GFX908-NEXT: renamable $agpr1 = COPY renamable $agpr0, implicit $exec
; GFX908-NEXT: renamable $agpr2 = COPY $agpr0, implicit $exec
; GFX908-NEXT: renamable $agpr3 = COPY $agpr0, implicit $exec
; GFX908-NEXT: S_ENDPGM 0, implicit $agpr1, implicit $agpr2, implicit $agpr3
;
; GFX90A-LABEL: name: propagate_agpr
; GFX90A: liveins: $agpr0
; GFX90A-NEXT: {{ $}}
; GFX90A-NEXT: renamable $agpr1 = COPY renamable $agpr0, implicit $exec
; GFX90A-NEXT: renamable $agpr2 = COPY $agpr0, implicit $exec
; GFX90A-NEXT: renamable $agpr3 = COPY $agpr0, implicit $exec
; GFX90A-NEXT: S_ENDPGM 0, implicit $agpr1, implicit $agpr2, implicit $agpr3
renamable $agpr1 = COPY renamable $agpr0, implicit $exec
renamable $agpr2 = COPY renamable $agpr1, implicit $exec
renamable $agpr3 = COPY renamable $agpr2, implicit $exec
S_ENDPGM 0, implicit $agpr1, implicit $agpr2, implicit $agpr3
...
---
name: do_not_propagate_agpr_to_agpr
body: |
bb.0:
successors:
liveins: $agpr0
; GFX908-LABEL: name: do_not_propagate_agpr_to_agpr
; GFX908: liveins: $agpr0
; GFX908-NEXT: {{ $}}
; GFX908-NEXT: renamable $vgpr0 = COPY renamable $agpr0, implicit $exec
; GFX908-NEXT: renamable $agpr1 = COPY $agpr0, implicit $exec
; GFX908-NEXT: renamable $agpr2 = COPY $agpr0, implicit $exec
; GFX908-NEXT: S_ENDPGM 0, implicit $vgpr0, implicit $agpr1, implicit $agpr2
;
; GFX90A-LABEL: name: do_not_propagate_agpr_to_agpr
; GFX90A: liveins: $agpr0
; GFX90A-NEXT: {{ $}}
; GFX90A-NEXT: renamable $vgpr0 = COPY renamable $agpr0, implicit $exec
; GFX90A-NEXT: renamable $agpr1 = COPY $agpr0, implicit $exec
; GFX90A-NEXT: renamable $agpr2 = COPY $agpr0, implicit $exec
; GFX90A-NEXT: S_ENDPGM 0, implicit $vgpr0, implicit $agpr1, implicit $agpr2
renamable $vgpr0 = COPY renamable $agpr0, implicit $exec
renamable $agpr1 = COPY renamable $vgpr0, implicit $exec
renamable $agpr2 = COPY renamable $vgpr0, implicit $exec
S_ENDPGM 0, implicit $vgpr0, implicit $agpr1, implicit $agpr2
...
---
name: propagate_vgpr_to_agpr
body: |
bb.0:
successors:
liveins: $vgpr0
; GFX908-LABEL: name: propagate_vgpr_to_agpr
; GFX908: liveins: $vgpr0
; GFX908-NEXT: {{ $}}
; GFX908-NEXT: renamable $agpr0 = COPY renamable $vgpr0, implicit $exec
; GFX908-NEXT: renamable $agpr1 = COPY $vgpr0, implicit $exec
; GFX908-NEXT: renamable $agpr2 = COPY $vgpr0, implicit $exec
; GFX908-NEXT: S_ENDPGM 0, implicit $agpr0, implicit $agpr1, implicit $agpr2
;
; GFX90A-LABEL: name: propagate_vgpr_to_agpr
; GFX90A: liveins: $vgpr0
; GFX90A-NEXT: {{ $}}
; GFX90A-NEXT: renamable $agpr0 = COPY renamable $vgpr0, implicit $exec
; GFX90A-NEXT: renamable $agpr1 = COPY $vgpr0, implicit $exec
; GFX90A-NEXT: renamable $agpr2 = COPY $vgpr0, implicit $exec
; GFX90A-NEXT: S_ENDPGM 0, implicit $agpr0, implicit $agpr1, implicit $agpr2
renamable $agpr0 = COPY renamable $vgpr0, implicit $exec
renamable $agpr1 = COPY renamable $agpr0, implicit $exec
renamable $agpr2 = COPY renamable $agpr0, implicit $exec
S_ENDPGM 0, implicit $agpr0, implicit $agpr1, implicit $agpr2
...
---
name: propagate_agpr_to_vgpr
body: |
bb.0:
successors:
liveins: $agpr0
; GFX908-LABEL: name: propagate_agpr_to_vgpr
; GFX908: liveins: $agpr0
; GFX908-NEXT: {{ $}}
; GFX908-NEXT: renamable $vgpr0 = COPY renamable $agpr0, implicit $exec
; GFX908-NEXT: renamable $vgpr1 = COPY $agpr0, implicit $exec
; GFX908-NEXT: renamable $vgpr2 = COPY $agpr0, implicit $exec
; GFX908-NEXT: S_ENDPGM 0, implicit $vgpr0, implicit $vgpr1, implicit $vgpr2
;
; GFX90A-LABEL: name: propagate_agpr_to_vgpr
; GFX90A: liveins: $agpr0
; GFX90A-NEXT: {{ $}}
; GFX90A-NEXT: renamable $vgpr0 = COPY renamable $agpr0, implicit $exec
; GFX90A-NEXT: renamable $vgpr1 = COPY $agpr0, implicit $exec
; GFX90A-NEXT: renamable $vgpr2 = COPY $agpr0, implicit $exec
; GFX90A-NEXT: S_ENDPGM 0, implicit $vgpr0, implicit $vgpr1, implicit $vgpr2
renamable $vgpr0 = COPY renamable $agpr0, implicit $exec
renamable $vgpr1 = COPY renamable $vgpr0, implicit $exec
renamable $vgpr2 = COPY renamable $vgpr0, implicit $exec
S_ENDPGM 0, implicit $vgpr0, implicit $vgpr1, implicit $vgpr2
...