Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/RISCV/GlobalISel/combine.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

139 lines
3.8 KiB
YAML

# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 5
# RUN: llc -run-pass=riscv-prelegalizer-combiner -mtriple riscv64 %s -o - | FileCheck %s --check-prefix=RV64
---
name: nneg_zext
body: |
bb.0:
; RV64-LABEL: name: nneg_zext
; RV64: [[COPY:%[0-9]+]]:_(s64) = COPY $x10
; RV64-NEXT: [[SEXT_INREG:%[0-9]+]]:_(s64) = G_SEXT_INREG [[COPY]], 32
; RV64-NEXT: $x10 = COPY [[SEXT_INREG]](s64)
; RV64-NEXT: PseudoRET implicit $x10
%0:_(s64) = COPY $x10
%2:_(s32) = G_TRUNC %0
%3:_(s64) = nneg G_ZEXT %2
$x10 = COPY %3(s64)
PseudoRET implicit $x10
...
---
name: binop_left_to_zero_shl
body: |
bb.0:
; RV64-LABEL: name: binop_left_to_zero_shl
; RV64: [[C:%[0-9]+]]:_(s64) = G_CONSTANT i64 0
; RV64-NEXT: $x10 = COPY [[C]](s64)
; RV64-NEXT: PseudoRET implicit $x10
%0:_(s64) = G_CONSTANT i64 0
%1:_(s64) = COPY $x10
%2:_(s64) = G_SHL %0, %1
$x10 = COPY %2(s64)
PseudoRET implicit $x10
...
---
name: binop_left_to_zero_lshr
body: |
bb.0:
; RV64-LABEL: name: binop_left_to_zero_lshr
; RV64: [[C:%[0-9]+]]:_(s64) = G_CONSTANT i64 0
; RV64-NEXT: $x10 = COPY [[C]](s64)
; RV64-NEXT: PseudoRET implicit $x10
%0:_(s64) = G_CONSTANT i64 0
%1:_(s64) = COPY $x10
%2:_(s64) = G_LSHR %0, %1
$x10 = COPY %2(s64)
PseudoRET implicit $x10
...
---
name: binop_left_to_zero_ashr
body: |
bb.0:
; RV64-LABEL: name: binop_left_to_zero_ashr
; RV64: [[C:%[0-9]+]]:_(s64) = G_CONSTANT i64 0
; RV64-NEXT: $x10 = COPY [[C]](s64)
; RV64-NEXT: PseudoRET implicit $x10
%0:_(s64) = G_CONSTANT i64 0
%1:_(s64) = COPY $x10
%2:_(s64) = G_ASHR %0, %1
$x10 = COPY %2(s64)
PseudoRET implicit $x10
...
---
name: binop_left_to_zero_sdiv
body: |
bb.0:
; RV64-LABEL: name: binop_left_to_zero_sdiv
; RV64: [[C:%[0-9]+]]:_(s64) = G_CONSTANT i64 0
; RV64-NEXT: $x10 = COPY [[C]](s64)
; RV64-NEXT: PseudoRET implicit $x10
%0:_(s64) = G_CONSTANT i64 0
%1:_(s64) = COPY $x10
%2:_(s64) = G_SDIV %0, %1
$x10 = COPY %2(s64)
PseudoRET implicit $x10
...
---
name: binop_left_to_zero_udiv
body: |
bb.0:
; RV64-LABEL: name: binop_left_to_zero_udiv
; RV64: [[C:%[0-9]+]]:_(s64) = G_CONSTANT i64 0
; RV64-NEXT: $x10 = COPY [[C]](s64)
; RV64-NEXT: PseudoRET implicit $x10
%0:_(s64) = G_CONSTANT i64 0
%1:_(s64) = COPY $x10
%2:_(s64) = G_UDIV %0, %1
$x10 = COPY %2(s64)
PseudoRET implicit $x10
...
---
name: binop_left_to_zero_srem
body: |
bb.0:
; RV64-LABEL: name: binop_left_to_zero_srem
; RV64: [[C:%[0-9]+]]:_(s64) = G_CONSTANT i64 0
; RV64-NEXT: $x10 = COPY [[C]](s64)
; RV64-NEXT: PseudoRET implicit $x10
%0:_(s64) = G_CONSTANT i64 0
%1:_(s64) = COPY $x10
%2:_(s64) = G_SREM %0, %1
$x10 = COPY %2(s64)
PseudoRET implicit $x10
...
---
name: binop_left_to_zero_urem
body: |
bb.0:
; RV64-LABEL: name: binop_left_to_zero_urem
; RV64: [[C:%[0-9]+]]:_(s64) = G_CONSTANT i64 0
; RV64-NEXT: $x10 = COPY [[C]](s64)
; RV64-NEXT: PseudoRET implicit $x10
%0:_(s64) = G_CONSTANT i64 0
%1:_(s64) = COPY $x10
%2:_(s64) = G_UREM %0, %1
$x10 = COPY %2(s64)
PseudoRET implicit $x10
...
---
name: binop_left_to_zero_mul
body: |
bb.0:
; RV64-LABEL: name: binop_left_to_zero_mul
; RV64: [[C:%[0-9]+]]:_(s64) = G_CONSTANT i64 0
; RV64-NEXT: $x10 = COPY [[C]](s64)
; RV64-NEXT: PseudoRET implicit $x10
%0:_(s64) = G_CONSTANT i64 0
%1:_(s64) = COPY $x10
%2:_(s64) = G_MUL %0, %1
$x10 = COPY %2(s64)
PseudoRET implicit $x10