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
151 lines
5.0 KiB
YAML
151 lines
5.0 KiB
YAML
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
|
# RUN: llc -mtriple=amdgcn -verify-machineinstrs -run-pass=amdgpu-pre-ra-optimizations %s -o - | FileCheck -check-prefix=GCN %s
|
|
# RUN: llc -mtriple=amdgcn -passes="amdgpu-pre-ra-optimizations" %s -o - | FileCheck -check-prefix=GCN %s
|
|
|
|
---
|
|
name: combine_sreg64_inits
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
; GCN-LABEL: name: combine_sreg64_inits
|
|
; GCN: dead [[S_MOV_B:%[0-9]+]]:sgpr_64 = S_MOV_B64_IMM_PSEUDO 8589934593
|
|
; GCN-NEXT: S_NOP 0
|
|
undef %0.sub0:sgpr_64 = S_MOV_B32 1
|
|
S_NOP 0
|
|
%0.sub1:sgpr_64 = S_MOV_B32 2
|
|
...
|
|
---
|
|
name: combine_sreg64_inits_swap
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
; GCN-LABEL: name: combine_sreg64_inits_swap
|
|
; GCN: dead [[S_MOV_B:%[0-9]+]]:sgpr_64 = S_MOV_B64_IMM_PSEUDO 8589934593
|
|
; GCN-NEXT: S_NOP 0
|
|
undef %0.sub1:sgpr_64 = S_MOV_B32 2
|
|
S_NOP 0
|
|
%0.sub0:sgpr_64 = S_MOV_B32 1
|
|
...
|
|
---
|
|
name: sreg64_subreg_copy_0
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
; GCN-LABEL: name: sreg64_subreg_copy_0
|
|
; GCN: [[DEF:%[0-9]+]]:sgpr_32 = IMPLICIT_DEF
|
|
; GCN-NEXT: undef [[COPY:%[0-9]+]].sub0:sgpr_64 = COPY [[DEF]]
|
|
; GCN-NEXT: [[COPY:%[0-9]+]].sub0:sgpr_64 = S_MOV_B32 1
|
|
; GCN-NEXT: dead [[COPY:%[0-9]+]].sub1:sgpr_64 = S_MOV_B32 2
|
|
%0:sgpr_32 = IMPLICIT_DEF
|
|
undef %1.sub0:sgpr_64 = COPY %0:sgpr_32
|
|
%1.sub0:sgpr_64 = S_MOV_B32 1
|
|
%1.sub1:sgpr_64 = S_MOV_B32 2
|
|
...
|
|
---
|
|
name: sreg64_subreg_copy_1
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
; GCN-LABEL: name: sreg64_subreg_copy_1
|
|
; GCN: [[DEF:%[0-9]+]]:sgpr_32 = IMPLICIT_DEF
|
|
; GCN-NEXT: undef [[S_MOV_B32_:%[0-9]+]].sub0:sgpr_64 = S_MOV_B32 1
|
|
; GCN-NEXT: [[S_MOV_B32_:%[0-9]+]].sub1:sgpr_64 = COPY [[DEF]]
|
|
; GCN-NEXT: dead [[S_MOV_B32_:%[0-9]+]].sub1:sgpr_64 = S_MOV_B32 2
|
|
%0:sgpr_32 = IMPLICIT_DEF
|
|
undef %1.sub0:sgpr_64 = S_MOV_B32 1
|
|
%1.sub1:sgpr_64 = COPY %0:sgpr_32
|
|
%1.sub1:sgpr_64 = S_MOV_B32 2
|
|
...
|
|
---
|
|
name: sreg64_subreg_copy_2
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
; GCN-LABEL: name: sreg64_subreg_copy_2
|
|
; GCN: [[DEF:%[0-9]+]]:sgpr_32 = IMPLICIT_DEF
|
|
; GCN-NEXT: undef [[S_MOV_B32_:%[0-9]+]].sub0:sgpr_64 = S_MOV_B32 1
|
|
; GCN-NEXT: [[S_MOV_B32_:%[0-9]+]].sub1:sgpr_64 = S_MOV_B32 2
|
|
; GCN-NEXT: dead [[S_MOV_B32_:%[0-9]+]].sub0:sgpr_64 = COPY [[DEF]]
|
|
%0:sgpr_32 = IMPLICIT_DEF
|
|
undef %1.sub0:sgpr_64 = S_MOV_B32 1
|
|
%1.sub1:sgpr_64 = S_MOV_B32 2
|
|
%1.sub0:sgpr_64 = COPY %0:sgpr_32
|
|
...
|
|
---
|
|
name: sreg64_inits_different_blocks
|
|
tracksRegLiveness: true
|
|
body: |
|
|
; GCN-LABEL: name: sreg64_inits_different_blocks
|
|
; GCN: bb.0:
|
|
; GCN-NEXT: successors: %bb.1(0x80000000)
|
|
; GCN-NEXT: {{ $}}
|
|
; GCN-NEXT: undef [[S_MOV_B32_:%[0-9]+]].sub0:sgpr_64 = S_MOV_B32 1
|
|
; GCN-NEXT: {{ $}}
|
|
; GCN-NEXT: bb.1:
|
|
; GCN-NEXT: dead [[S_MOV_B32_:%[0-9]+]].sub1:sgpr_64 = S_MOV_B32 2
|
|
bb.0:
|
|
undef %0.sub0:sgpr_64 = S_MOV_B32 1
|
|
|
|
bb.1:
|
|
%0.sub1:sgpr_64 = S_MOV_B32 2
|
|
...
|
|
---
|
|
name: sreg64_inits_two_defs_sub1
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
; GCN-LABEL: name: sreg64_inits_two_defs_sub1
|
|
; GCN: undef [[S_MOV_B32_:%[0-9]+]].sub0:sgpr_64 = S_MOV_B32 1
|
|
; GCN-NEXT: [[S_MOV_B32_:%[0-9]+]].sub1:sgpr_64 = S_MOV_B32 2
|
|
; GCN-NEXT: dead [[S_MOV_B32_:%[0-9]+]].sub1:sgpr_64 = S_MOV_B32 3
|
|
undef %0.sub0:sgpr_64 = S_MOV_B32 1
|
|
%0.sub1:sgpr_64 = S_MOV_B32 2
|
|
%0.sub1:sgpr_64 = S_MOV_B32 3
|
|
...
|
|
---
|
|
name: sreg64_inits_two_defs_sub0
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
; GCN-LABEL: name: sreg64_inits_two_defs_sub0
|
|
; GCN: undef [[S_MOV_B32_:%[0-9]+]].sub0:sgpr_64 = S_MOV_B32 1
|
|
; GCN-NEXT: [[S_MOV_B32_:%[0-9]+]].sub1:sgpr_64 = S_MOV_B32 2
|
|
; GCN-NEXT: dead [[S_MOV_B32_:%[0-9]+]].sub0:sgpr_64 = S_MOV_B32 3
|
|
undef %0.sub0:sgpr_64 = S_MOV_B32 1
|
|
%0.sub1:sgpr_64 = S_MOV_B32 2
|
|
%0.sub0:sgpr_64 = S_MOV_B32 3
|
|
...
|
|
---
|
|
name: sreg64_inits_full_def
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
; GCN-LABEL: name: sreg64_inits_full_def
|
|
; GCN: dead undef [[S_MOV_B32_:%[0-9]+]].sub0:sgpr_64 = S_MOV_B32 1
|
|
; GCN-NEXT: dead [[S_MOV_B64_:%[0-9]+]]:sgpr_64 = S_MOV_B64 3
|
|
undef %0.sub0:sgpr_64 = S_MOV_B32 1
|
|
%0:sgpr_64 = S_MOV_B64 3
|
|
...
|
|
---
|
|
name: sreg64_inits_imp_use
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
; GCN-LABEL: name: sreg64_inits_imp_use
|
|
; GCN: undef [[S_MOV_B32_:%[0-9]+]].sub0:sgpr_64 = S_MOV_B32 1, implicit $m0
|
|
; GCN-NEXT: dead [[S_MOV_B32_:%[0-9]+]].sub1:sgpr_64 = S_MOV_B32 2
|
|
undef %0.sub0:sgpr_64 = S_MOV_B32 1, implicit $m0
|
|
%0.sub1:sgpr_64 = S_MOV_B32 2
|
|
...
|
|
---
|
|
name: sreg64_inits_imp_def
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
; GCN-LABEL: name: sreg64_inits_imp_def
|
|
; GCN: undef [[S_MOV_B32_:%[0-9]+]].sub0:sgpr_64 = S_MOV_B32 1, implicit-def $scc
|
|
; GCN-NEXT: dead [[S_MOV_B32_:%[0-9]+]].sub1:sgpr_64 = S_MOV_B32 2
|
|
undef %0.sub0:sgpr_64 = S_MOV_B32 1, implicit-def $scc
|
|
%0.sub1:sgpr_64 = S_MOV_B32 2
|
|
...
|