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
118 lines
3.9 KiB
YAML
118 lines
3.9 KiB
YAML
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
|
# RUN: llc -mtriple aarch64 -debugify-and-strip-all-safe -run-pass=aarch64-prelegalizer-combiner --aarch64prelegalizercombiner-only-enable-rule="mulo_by_2" -global-isel -verify-machineinstrs %s -o - | FileCheck %s
|
|
# REQUIRES: asserts
|
|
...
|
|
---
|
|
name: smulo_to_saddo
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $x0
|
|
|
|
; CHECK-LABEL: name: smulo_to_saddo
|
|
; CHECK: liveins: $x0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: %copy:_(s64) = COPY $x0
|
|
; CHECK-NEXT: %mul:_(s64), %o:_(s1) = G_SADDO %copy, %copy
|
|
; CHECK-NEXT: %overflow_ext:_(s32) = G_ZEXT %o(s1)
|
|
; CHECK-NEXT: $w0 = COPY %overflow_ext(s32)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $w0
|
|
%copy:_(s64) = COPY $x0
|
|
%two:_(s64) = G_CONSTANT i64 2
|
|
%mul:_(s64), %o:_(s1) = G_SMULO %copy, %two
|
|
%overflow_ext:_(s32) = G_ZEXT %o(s1)
|
|
$w0 = COPY %overflow_ext(s32)
|
|
RET_ReallyLR implicit $w0
|
|
...
|
|
---
|
|
name: umulo_to_uaddo
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $x0
|
|
|
|
; CHECK-LABEL: name: umulo_to_uaddo
|
|
; CHECK: liveins: $x0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: %copy:_(s64) = COPY $x0
|
|
; CHECK-NEXT: %mul:_(s64), %o:_(s1) = G_UADDO %copy, %copy
|
|
; CHECK-NEXT: %overflow_ext:_(s32) = G_ZEXT %o(s1)
|
|
; CHECK-NEXT: $w0 = COPY %overflow_ext(s32)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $w0
|
|
%copy:_(s64) = COPY $x0
|
|
%two:_(s64) = G_CONSTANT i64 2
|
|
%mul:_(s64), %o:_(s1) = G_UMULO %copy, %two
|
|
%overflow_ext:_(s32) = G_ZEXT %o(s1)
|
|
$w0 = COPY %overflow_ext(s32)
|
|
RET_ReallyLR implicit $w0
|
|
...
|
|
---
|
|
name: vector
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $d0, $d1
|
|
|
|
; CHECK-LABEL: name: vector
|
|
; CHECK: liveins: $d0, $d1
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: %copy:_(<2 x s32>) = COPY $d0
|
|
; CHECK-NEXT: %mul:_(<2 x s32>), %o:_(<2 x s1>) = G_SADDO %copy, %copy
|
|
; CHECK-NEXT: %overflow_ext:_(<2 x s32>) = G_ANYEXT %o(<2 x s1>)
|
|
; CHECK-NEXT: $d0 = COPY %overflow_ext(<2 x s32>)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $d0
|
|
%copy:_(<2 x s32>) = COPY $d0
|
|
%two:_(s32) = G_CONSTANT i32 2
|
|
%splat_two:_(<2 x s32>) = G_BUILD_VECTOR %two(s32), %two(s32)
|
|
%mul:_(<2 x s32>), %o:_(<2 x s1>) = G_SMULO %copy, %splat_two
|
|
%overflow_ext:_(<2 x s32>) = G_ANYEXT %o(<2 x s1>)
|
|
$d0 = COPY %overflow_ext(<2 x s32>)
|
|
RET_ReallyLR implicit $d0
|
|
...
|
|
---
|
|
name: dont_combine_wrong_cst
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $x0
|
|
|
|
; CHECK-LABEL: name: dont_combine_wrong_cst
|
|
; CHECK: liveins: $x0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: %copy:_(s64) = COPY $x0
|
|
; CHECK-NEXT: %three:_(s64) = G_CONSTANT i64 3
|
|
; CHECK-NEXT: %mul:_(s64), %o:_(s1) = G_UMULO %copy, %three
|
|
; CHECK-NEXT: %overflow_ext:_(s32) = G_ZEXT %o(s1)
|
|
; CHECK-NEXT: $w0 = COPY %overflow_ext(s32)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $w0
|
|
%copy:_(s64) = COPY $x0
|
|
%three:_(s64) = G_CONSTANT i64 3
|
|
%mul:_(s64), %o:_(s1) = G_UMULO %copy, %three
|
|
%overflow_ext:_(s32) = G_ZEXT %o(s1)
|
|
$w0 = COPY %overflow_ext(s32)
|
|
RET_ReallyLR implicit $w0
|
|
...
|
|
---
|
|
name: dont_combine_not_cst
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $x0, $x1
|
|
|
|
; CHECK-LABEL: name: dont_combine_not_cst
|
|
; CHECK: liveins: $x0, $x1
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: %copy1:_(s64) = COPY $x0
|
|
; CHECK-NEXT: %copy2:_(s64) = COPY $x1
|
|
; CHECK-NEXT: %mul:_(s64), %o:_(s1) = G_UMULO %copy1, %copy2
|
|
; CHECK-NEXT: %overflow_ext:_(s32) = G_ZEXT %o(s1)
|
|
; CHECK-NEXT: $w0 = COPY %overflow_ext(s32)
|
|
; CHECK-NEXT: RET_ReallyLR implicit $w0
|
|
%copy1:_(s64) = COPY $x0
|
|
%copy2:_(s64) = COPY $x1
|
|
%mul:_(s64), %o:_(s1) = G_UMULO %copy1, %copy2
|
|
%overflow_ext:_(s32) = G_ZEXT %o(s1)
|
|
$w0 = COPY %overflow_ext(s32)
|
|
RET_ReallyLR implicit $w0
|
|
...
|