Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/PowerPC/early-ret.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

147 lines
4.1 KiB
YAML

# RUN: llc -mtriple powerpc64le-unknown-linux-gnu -run-pass=ppc-early-ret -o \
# RUN: - %s -verify-machineinstrs | FileCheck %s
---
name: testBLR
body: |
bb.0.entry:
successors: %bb.1(0x40000000), %bb.2(0x40000000)
liveins: $r3, $r4
renamable $cr0 = CMPWI renamable $r3, 0
BC killed renamable $cr0gt, %bb.1
B %bb.2
bb.1.entry:
successors: %bb.2(0x80000000)
liveins: $r4
renamable $r3 = ADDI killed renamable $r4, 0
bb.2.entry:
liveins: $r3, $r4, $cr0eq, $cr0lt, $cr0un, $cr0, $cr0gt, $r3, $r3, $r4, $r3, $cr0gt
BLR implicit $lr, implicit $rm, implicit killed $r3
; CHECK-LABEL: name: testBLR
; CHECK: bb.0.entry:
; CHECK: renamable $cr0 = CMPWI renamable $r3, 0
; CHECK: BC killed renamable $cr0gt, %bb.1
; CHECK: BLR implicit $lr, implicit $rm, implicit killed $r3
; CHECK: bb.1.entry:
; CHECK: renamable $r3 = ADDI killed renamable $r4, 0
; CHECK: BLR implicit $lr, implicit $rm, implicit killed $r3
...
---
name: testBCLRn
body: |
bb.0.entry:
successors: %bb.3(0x20000000), %bb.1(0x60000000)
liveins: $f1, $f2, $f3, $f4, $v2, $v3
renamable $cr0 = FCMPUS killed renamable $f3, killed renamable $f4
BCn killed renamable $cr0eq, %bb.3
bb.1.entry:
successors: %bb.2(0x80000000)
liveins: $f1, $f2, $v2, $v3
renamable $cr0 = FCMPUS killed renamable $f1, killed renamable $f2
BCLR killed renamable $cr0eq, implicit $lr, implicit $rm, implicit killed $v2
bb.2:
successors: %bb.3(0x80000000)
liveins: $v3
$v2 = VOR killed $v3, $v3
bb.3:
liveins: $v2
BLR implicit $lr, implicit $rm, implicit killed $v2
; CHECK-LABEL: name: testBCLRn
; CHECK: bb.0.entry:
; CHECK: renamable $cr0 = FCMPUS killed renamable $f3, killed renamable $f4
; CHECK: BCLRn killed renamable $cr0eq, implicit $lr, implicit $rm, implicit killed $v2
; CHECK: bb.1.entry:
; CHECK: renamable $cr0 = FCMPUS killed renamable $f1, killed renamable $f2
; CHECK: BCLR killed renamable $cr0eq, implicit $lr, implicit $rm, implicit killed $v2
; CHECK: bb.2:
; CHECK: $v2 = VOR killed $v3, $v3
; CHECK: BLR implicit $lr, implicit $rm, implicit killed $v2
...
---
name: testBCLR
body: |
bb.0.entry:
successors: %bb.3(0x20000000), %bb.1(0x60000000)
liveins: $f1, $f2, $f3, $f4, $v2, $v3
renamable $cr0 = FCMPUS killed renamable $f3, killed renamable $f4
BC killed renamable $cr0eq, %bb.3
bb.1.entry:
successors: %bb.2(0x80000000)
liveins: $f1, $f2, $v2, $v3
renamable $cr0 = FCMPUS killed renamable $f1, killed renamable $f2
BCLRn killed renamable $cr0eq, implicit $lr, implicit $rm, implicit killed $v2
bb.2:
successors: %bb.3(0x80000000)
liveins: $v3
$v2 = VOR killed $v3, $v3
bb.3:
liveins: $v2
BLR implicit $lr, implicit $rm, implicit killed $v2
; CHECK-LABEL: name: testBCLR
; CHECK: bb.0.entry:
; CHECK: renamable $cr0 = FCMPUS killed renamable $f3, killed renamable $f4
; CHECK: BCLR killed renamable $cr0eq, implicit $lr, implicit $rm, implicit killed $v2
; CHECK: bb.1.entry:
; CHECK: renamable $cr0 = FCMPUS killed renamable $f1, killed renamable $f2
; CHECK: BCLRn killed renamable $cr0eq, implicit $lr, implicit $rm, implicit killed $v2
; CHECK: bb.2:
; CHECK: $v2 = VOR killed $v3, $v3
; CHECK: BLR implicit $lr, implicit $rm, implicit killed $v2
...
---
name: testBCCLR
body: |
bb.0.entry:
successors: %bb.2(0x40000000), %bb.1(0x40000000)
renamable $r4 = LI 0
renamable $cr0 = CMPLWI killed renamable $r4, 0
BCC 68, renamable $cr0, %bb.2
bb.1:
successors: %bb.2(0x40000000)
liveins: $cr0
BCC 68, killed renamable $cr0, %bb.2
bb.2:
BLR implicit $lr, implicit $rm
; CHECK-LABEL: name: testBCCLR
; CHECK: bb.0.entry:
; CHECK: renamable $r4 = LI 0
; CHECK: renamable $cr0 = CMPLWI killed renamable $r4, 0
; CHECK: BCCLR 68, renamable $cr0, implicit $lr, implicit $rm
; CHECK: bb.1:
; CHECK: BCCLR 68, killed renamable $cr0, implicit $lr, implicit $rm
; CHECK: BLR implicit $lr, implicit $rm
...