Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/ARM/regalloc-fast-rewrite-implicits.mir
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

80 lines
3.1 KiB
YAML

# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -mtriple=armv7-apple-ios -run-pass=regallocfast -o - %s | FileCheck %s
# RUN: llc -mtriple=armv7-apple-ios -passes=regallocfast -o - %s | FileCheck %s
# tBX_RET uses an implicit vreg with a sub-register. That implicit use will
# typically be rewritten as a use of the relevant super-register. Make sure
# regallocfast is able to process the remaining operands (here, %2) and rewrite
# them to use physical registers.
---
name: different_vreg
tracksRegLiveness: true
body: |
bb.0:
liveins: $d2, $d4, $d7
; CHECK-LABEL: name: different_vreg
; CHECK: liveins: $d2, $d4, $d7
; CHECK-NEXT: {{ $}}
; CHECK-NEXT: renamable $d5 = COPY killed $d4
; CHECK-NEXT: renamable $d4 = COPY killed $d2
; CHECK-NEXT: undef renamable $d0 = COPY renamable $d5, implicit-def $q0_q1
; CHECK-NEXT: renamable $d1 = COPY renamable $d4
; CHECK-NEXT: renamable $d2 = COPY killed renamable $d5
; CHECK-NEXT: renamable $d3 = COPY killed renamable $d4
; CHECK-NEXT: tBX_RET 14 /* CC::al */, $noreg, implicit killed renamable $d7, implicit killed $q0_q1
%0:dpr_vfp2 = COPY $d4
%1:dpr_vfp2 = COPY $d2
%2:dpr_vfp2 = COPY $d7
undef %4.dsub_0:dquad = COPY %0
%4.dsub_1:dquad = COPY %1
%4.dsub_2:dquad = COPY %0
%4.dsub_3:dquad = COPY %1
tBX_RET 14, $noreg, implicit %4.dsub_3, implicit %2
...
# tBX_RET uses the same vreg twice, make sure regallocfast is able to allocate a
# physical register for it and replace both references.
---
name: same_vreg_twice
tracksRegLiveness: true
body: |
bb.0:
liveins: $d2, $d4
; CHECK-LABEL: name: same_vreg_twice
; CHECK: liveins: $d2, $d4
; CHECK-NEXT: {{ $}}
; CHECK-NEXT: renamable $d5 = COPY killed $d4
; CHECK-NEXT: renamable $d4 = COPY killed $d2
; CHECK-NEXT: undef renamable $d0 = COPY renamable $d5, implicit-def $q0_q1
; CHECK-NEXT: renamable $d1 = COPY renamable $d4
; CHECK-NEXT: renamable $d2 = COPY killed renamable $d5
; CHECK-NEXT: renamable $d3 = COPY killed renamable $d4
; CHECK-NEXT: tBX_RET 14 /* CC::al */, $noreg, implicit renamable $d3, implicit killed $q0_q1
%0:dpr_vfp2 = COPY $d4
%1:dpr_vfp2 = COPY $d2
undef %4.dsub_0:dquad = COPY %0
%4.dsub_1:dquad = COPY %1
%4.dsub_2:dquad = COPY %0
%4.dsub_3:dquad = COPY %1
tBX_RET 14, $noreg, implicit %4.dsub_1, implicit %4.dsub_3
...
# tBL partially defines two vregs, which turn out to be dead. Make sure
# regallocfast allocates a phys reg for both %0 and %1.
---
name: partial_dead
tracksRegLiveness: true
body: |
bb.0:
; CHECK-LABEL: name: partial_dead
; CHECK: tBL 14 /* CC::al */, $noreg, 0, csr_aapcs, implicit-def dead $lr, implicit $sp, implicit-def $sp, implicit-def dead $q0_q1, implicit-def dead $q2_q3
; CHECK-NEXT: tBX_RET 14 /* CC::al */, $noreg
tBL 14, $noreg, 0, csr_aapcs, implicit-def dead $lr, implicit $sp, implicit-def $sp, implicit-def undef %0.dsub_0:dquad, implicit-def undef %1.dsub_2:dquad
tBX_RET 14, $noreg
...