Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/SystemZ/misched-prera-biaspregs.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

95 lines
2.2 KiB
YAML

# RUN: llc -o - %s -mtriple=s390x-linux-gnu -mcpu=z16 -verify-machineinstrs \
# RUN: -run-pass=machine-scheduler 2>&1 | FileCheck %s
# The COPY to r2 should be right before the return.
# CHECK: name: fun0
# CHECK: $r2d = COPY %0
# CHECK-NEXT: Return implicit $r2d
---
name: fun0
tracksRegLiveness: true
body: |
bb.0.entry:
%0:gr64bit = LGHI 0
$r2d = COPY %0
%1:gr64bit = LGHI 0
Return implicit $r2d
...
# The COPY from r2 should be first.
# CHECK: name: fun1
# CHECK: liveins: $r2
# CHECK-NEXT: {{ $}}
# CHECK-NEXT: %2:gr64bit = COPY $r2
---
name: fun1
tracksRegLiveness: true
body: |
bb.0.entry:
liveins: $r2d
%0:gr64bit = LGHI 1
%1:gr64bit = COPY %0
%2:gr64bit = COPY %1
%2:gr64bit = COPY $r2d
$r2d = COPY %2
Return implicit $r2d
...
# The LGHI to r2 should be right before the return.
# CHECK: name: fun2
# CHECK: $r2d = LGHI 0
# CHECK-NEXT: Return implicit $r2d
---
name: fun2
tracksRegLiveness: true
body: |
bb.0.entry:
%0:gr64bit = LGHI 0
$r2d = LGHI 0
%1:gr64bit = LGHI 0
Return implicit $r2d
...
# The LA to r2 should be right before the return.
# CHECK: name: fun3
# CHECK: $r2d = LA %stack.0, 0, $noreg
# CHECK-NEXT: Return implicit $r2d
---
name: fun3
tracksRegLiveness: true
stack:
- { id: 0, size: 8 }
body: |
bb.0:
$r2d = LA %stack.0, 0, $noreg
%0:gr64bit = LGHI 0
Return implicit killed $r2d
...
# Don't reorder phys-reg COPYs. Recognize LA to PReg with a VReg use.
# CHECK: name: fun4
# CHECK: %0:addr64bit = COPY $r2d
# CHECK-NEXT: dead %3:gr64bit = COPY $r3d
# CHECK-NEXT: %1:gr64bit = AGRK %0, %0, implicit-def $cc
# CHECK-NEXT: dead %2:gr64bit = AGRK %1, %0, implicit-def $cc
# CHECK-NEXT: $r2d = LA %0, 0, $noreg
# CHECK-NEXT: Return
---
name: fun4
tracksRegLiveness: true
stack:
- { id: 0, size: 8 }
body: |
bb.0.entry:
liveins: $r2d, $r3d
%0:addr64bit = COPY $r2d
%2:gr64bit = AGRK %0, %0, implicit-def $cc
$r2d = LA %0, 0, $noreg
%3:gr64bit = AGRK %2, %0, implicit-def $cc
%1:gr64bit = COPY $r3d
Return
...