Files
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

82 lines
2.7 KiB
YAML

# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 5
# RUN: llc -o - -mtriple aarch64-- -run-pass=aarch64-prelegalizer-combiner %s | FileCheck %s
---
name: test_combine_neg_and_one_to_sext_inreg_s32
body: |
bb.1:
liveins: $w0
; CHECK-LABEL: name: test_combine_neg_and_one_to_sext_inreg_s32
; CHECK: liveins: $w0
; CHECK-NEXT: {{ $}}
; CHECK-NEXT: %x:_(s32) = COPY $w0
; CHECK-NEXT: %res:_(s32) = G_SEXT_INREG %x, 1
; CHECK-NEXT: $w0 = COPY %res(s32)
%x:_(s32) = COPY $w0
%one:_(s32) = G_CONSTANT i32 1
%zero:_(s32) = G_CONSTANT i32 0
%and:_(s32) = G_AND %x:_, %one:_
%res:_(s32) = G_SUB %zero:_, %and:_
$w0 = COPY %res:_(s32)
...
---
name: test_combine_neg_and_one_to_sext_inreg_s64
body: |
bb.1:
liveins: $x0
; CHECK-LABEL: name: test_combine_neg_and_one_to_sext_inreg_s64
; CHECK: liveins: $x0
; CHECK-NEXT: {{ $}}
; CHECK-NEXT: %x:_(s64) = COPY $x0
; CHECK-NEXT: %res:_(s64) = G_SEXT_INREG %x, 1
; CHECK-NEXT: $x0 = COPY %res(s64)
%x:_(s64) = COPY $x0
%one:_(s64) = G_CONSTANT i64 1
%zero:_(s64) = G_CONSTANT i64 0
%and:_(s64) = G_AND %x:_, %one:_
%res:_(s64) = G_SUB %zero:_, %and:_
$x0 = COPY %res:_(s64)
...
---
name: test_combine_neg_and_one_to_sext_inreg_multiuse_should_not_transform
body: |
bb.1:
liveins: $x0
; CHECK-LABEL: name: test_combine_neg_and_one_to_sext_inreg_multiuse_should_not_transform
; CHECK: liveins: $x0
; CHECK-NEXT: {{ $}}
; CHECK-NEXT: %x:_(s64) = COPY $x0
; CHECK-NEXT: %one:_(s64) = G_CONSTANT i64 1
; CHECK-NEXT: %zero:_(s64) = G_CONSTANT i64 0
; CHECK-NEXT: %and:_(s64) = G_AND %x, %one
; CHECK-NEXT: %res:_(s64) = G_SUB %zero, %and
; CHECK-NEXT: $x0 = COPY %res(s64)
; CHECK-NEXT: $x1 = COPY %and(s64)
%x:_(s64) = COPY $x0
%one:_(s64) = G_CONSTANT i64 1
%zero:_(s64) = G_CONSTANT i64 0
%and:_(s64) = G_AND %x:_, %one:_
%res:_(s64) = G_SUB %zero:_, %and:_
$x0 = COPY %res:_(s64)
$x1 = COPY %and:_(s64)
...
---
name: test_combine_neg_and_one_to_sext_inreg_v2i32
body: |
bb.1:
liveins: $d0
; CHECK-LABEL: name: test_combine_neg_and_one_to_sext_inreg_v2i32
; CHECK: liveins: $d0
; CHECK-NEXT: {{ $}}
; CHECK-NEXT: %x:_(<2 x s32>) = COPY $d0
; CHECK-NEXT: %res:_(<2 x s32>) = G_SEXT_INREG %x, 1
; CHECK-NEXT: $d0 = COPY %res(<2 x s32>)
%x:_(<2 x s32>) = COPY $d0
%one:_(s32) = G_CONSTANT i32 1
%ones:_(<2 x s32>) = G_BUILD_VECTOR %one, %one
%zero:_(s32) = G_CONSTANT i32 0
%zeros:_(<2 x s32>) = G_BUILD_VECTOR %zero, %zero
%and:_(<2 x s32>) = G_AND %x:_, %ones:_
%res:_(<2 x s32>) = G_SUB %zeros:_, %and:_
$d0 = COPY %res:_(<2 x s32>)
...