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
119 lines
4.0 KiB
YAML
119 lines
4.0 KiB
YAML
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
|
# RUN: llc -mtriple=aarch64 -O0 -run-pass=legalizer %s -o - | FileCheck %s --check-prefixes=CHECK,CHECK-O0
|
|
# RUN: llc -mtriple=aarch64 -run-pass=legalizer %s -o - | FileCheck %s --check-prefixes=CHECK,CHECK-O2
|
|
|
|
---
|
|
name: test_unmerge_s4_constant
|
|
body: |
|
|
bb.0:
|
|
; CHECK-O0-LABEL: name: test_unmerge_s4_constant
|
|
; CHECK-O0: [[C:%[0-9]+]]:_(s64) = G_CONSTANT i64 0
|
|
; CHECK-O0-NEXT: $x0 = COPY [[C]](s64)
|
|
;
|
|
; CHECK-O2-LABEL: name: test_unmerge_s4_constant
|
|
; CHECK-O2: [[C:%[0-9]+]]:_(s8) = G_CONSTANT i8 0
|
|
; CHECK-O2-NEXT: [[TRUNC:%[0-9]+]]:_(s4) = G_TRUNC [[C]](s8)
|
|
; CHECK-O2-NEXT: [[COPY:%[0-9]+]]:_(s4) = COPY [[TRUNC]](s4)
|
|
; CHECK-O2-NEXT: [[C1:%[0-9]+]]:_(s64) = G_CONSTANT i64 0
|
|
; CHECK-O2-NEXT: $x0 = COPY [[C1]](s64)
|
|
%0:_(s8) = G_CONSTANT i8 0
|
|
%1:_(s4), %2:_(s4)= G_UNMERGE_VALUES %0
|
|
%3:_(s64) = G_ANYEXT %1
|
|
$x0 = COPY %3
|
|
|
|
...
|
|
|
|
---
|
|
name: test_unmerge_s4
|
|
body: |
|
|
bb.0:
|
|
liveins: $w0
|
|
; CHECK-LABEL: name: test_unmerge_s4
|
|
; CHECK: liveins: $w0
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: [[COPY:%[0-9]+]]:_(s32) = COPY $w0
|
|
; CHECK-NEXT: [[UV:%[0-9]+]]:_(s8), [[UV1:%[0-9]+]]:_(s8), [[UV2:%[0-9]+]]:_(s8), [[UV3:%[0-9]+]]:_(s8) = G_UNMERGE_VALUES [[COPY]](s32)
|
|
; CHECK-NEXT: [[ZEXT:%[0-9]+]]:_(s32) = G_ZEXT [[UV]](s8)
|
|
; CHECK-NEXT: [[C:%[0-9]+]]:_(s64) = G_CONSTANT i64 4
|
|
; CHECK-NEXT: [[LSHR:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT]], [[C]](s64)
|
|
; CHECK-NEXT: [[ANYEXT:%[0-9]+]]:_(s64) = G_ANYEXT [[UV]](s8)
|
|
; CHECK-NEXT: [[ANYEXT1:%[0-9]+]]:_(s64) = G_ANYEXT [[LSHR]](s32)
|
|
; CHECK-NEXT: $x0 = COPY [[ANYEXT]](s64)
|
|
; CHECK-NEXT: $x1 = COPY [[ANYEXT1]](s64)
|
|
%0:_(s32) = COPY $w0
|
|
%1:_(s8) = G_TRUNC %0
|
|
%2:_(s4), %3:_(s4)= G_UNMERGE_VALUES %1
|
|
%4:_(s64) = G_ANYEXT %2
|
|
%5:_(s64) = G_ANYEXT %3
|
|
$x0 = COPY %4
|
|
$x1 = COPY %5
|
|
|
|
...
|
|
|
|
---
|
|
name: test_unmerge_unmerge_s64
|
|
body: |
|
|
bb.0:
|
|
liveins: $x0,$d0,$d1,$d2
|
|
; CHECK-LABEL: name: test_unmerge_unmerge_s64
|
|
; CHECK: liveins: $x0, $d0, $d1, $d2
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: [[COPY:%[0-9]+]]:_(s64) = COPY $x0
|
|
; CHECK-NEXT: $x0 = COPY [[COPY]](s64)
|
|
; CHECK-NEXT: $x1 = COPY [[COPY]](s64)
|
|
; CHECK-NEXT: $x2 = COPY [[COPY]](s64)
|
|
%0:_(s64) = COPY $x0
|
|
%1:_(<3 x s64>) = G_BUILD_VECTOR %0:_(s64), %0:_(s64), %0:_(s64)
|
|
%2:_(s64), %3:_(s64), %4:_(s64) = G_UNMERGE_VALUES %1:_(<3 x s64>)
|
|
$x0 = COPY %2:_(s64)
|
|
$x1 = COPY %3:_(s64)
|
|
$x2 = COPY %3:_(s64)
|
|
|
|
...
|
|
|
|
---
|
|
name: test_unmerge_unmerge_to_p0
|
|
body: |
|
|
bb.0:
|
|
liveins: $x0,$d0,$d1,$d2
|
|
; CHECK-LABEL: name: test_unmerge_unmerge_to_p0
|
|
; CHECK: liveins: $x0, $d0, $d1, $d2
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: [[COPY:%[0-9]+]]:_(s64) = COPY $x0
|
|
; CHECK-NEXT: [[INTTOPTR:%[0-9]+]]:_(p0) = G_INTTOPTR [[COPY]](s64)
|
|
; CHECK-NEXT: [[INTTOPTR1:%[0-9]+]]:_(p0) = G_INTTOPTR [[COPY]](s64)
|
|
; CHECK-NEXT: $x0 = COPY [[INTTOPTR]](p0)
|
|
; CHECK-NEXT: $x1 = COPY [[INTTOPTR1]](p0)
|
|
; CHECK-NEXT: $x2 = COPY [[INTTOPTR1]](p0)
|
|
%0:_(s64) = COPY $x0
|
|
%1:_(<3 x s64>) = G_BUILD_VECTOR %0:_(s64), %0:_(s64), %0:_(s64)
|
|
%2:_(p0), %3:_(p0), %4:_(p0) = G_UNMERGE_VALUES %1:_(<3 x s64>)
|
|
$x0 = COPY %2:_(p0)
|
|
$x1 = COPY %3:_(p0)
|
|
$x2 = COPY %3:_(p0)
|
|
|
|
...
|
|
|
|
---
|
|
name: test_unmerge_unmerge_from_p0
|
|
body: |
|
|
bb.0:
|
|
liveins: $x0,$d0,$d1,$d2
|
|
; CHECK-LABEL: name: test_unmerge_unmerge_from_p0
|
|
; CHECK: liveins: $x0, $d0, $d1, $d2
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
|
|
; CHECK-NEXT: [[PTRTOINT:%[0-9]+]]:_(s64) = G_PTRTOINT [[COPY]](p0)
|
|
; CHECK-NEXT: [[PTRTOINT1:%[0-9]+]]:_(s64) = G_PTRTOINT [[COPY]](p0)
|
|
; CHECK-NEXT: $d0 = COPY [[PTRTOINT]](s64)
|
|
; CHECK-NEXT: $d1 = COPY [[PTRTOINT1]](s64)
|
|
; CHECK-NEXT: $d2 = COPY [[PTRTOINT1]](s64)
|
|
%0:_(p0) = COPY $x0
|
|
%1:_(<3 x p0>) = G_BUILD_VECTOR %0:_(p0), %0:_(p0), %0:_(p0)
|
|
%2:_(s64), %3:_(s64), %4:_(s64) = G_UNMERGE_VALUES %1:_(<3 x p0>)
|
|
$d0 = COPY %2:_(s64)
|
|
$d1 = COPY %3:_(s64)
|
|
$d2 = COPY %3:_(s64)
|
|
|
|
...
|