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
646 lines
18 KiB
YAML
646 lines
18 KiB
YAML
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
|
# RUN: llc -O0 -mtriple=amdgcn-mesa-mesa3d -mcpu=tahiti -run-pass=legalizer -global-isel-abort=0 %s -o - | FileCheck %s
|
|
# RUN: llc -O0 -mtriple=amdgcn-mesa-mesa3d -mcpu=fiji -run-pass=legalizer -global-isel-abort=0 %s -o - | FileCheck %s
|
|
|
|
---
|
|
name: test_implicit_def_s1
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_s1
|
|
; CHECK: [[DEF:%[0-9]+]]:_(s32) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0 = COPY [[DEF]](s32)
|
|
%0:_(s1) = G_IMPLICIT_DEF
|
|
%1:_(s32) = G_ANYEXT %0
|
|
$vgpr0 = COPY %1
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_s7
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_s7
|
|
; CHECK: [[DEF:%[0-9]+]]:_(s32) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0 = COPY [[DEF]](s32)
|
|
%0:_(s7) = G_IMPLICIT_DEF
|
|
%1:_(s32) = G_ANYEXT %0
|
|
$vgpr0 = COPY %1
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_s8
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_s8
|
|
; CHECK: [[DEF:%[0-9]+]]:_(s32) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0 = COPY [[DEF]](s32)
|
|
%0:_(s8) = G_IMPLICIT_DEF
|
|
%1:_(s32) = G_ANYEXT %0
|
|
$vgpr0 = COPY %1
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_s16
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_s16
|
|
; CHECK: [[DEF:%[0-9]+]]:_(s32) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0 = COPY [[DEF]](s32)
|
|
%0:_(s16) = G_IMPLICIT_DEF
|
|
%1:_(s32) = G_ANYEXT %0
|
|
$vgpr0 = COPY %1
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_s32
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_s32
|
|
; CHECK: [[DEF:%[0-9]+]]:_(s32) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0 = COPY [[DEF]](s32)
|
|
%0:_(s32) = G_IMPLICIT_DEF
|
|
$vgpr0 = COPY %0
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_48
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_48
|
|
; CHECK: [[DEF:%[0-9]+]]:_(s64) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0_vgpr1 = COPY [[DEF]](s64)
|
|
%0:_(s48) = G_IMPLICIT_DEF
|
|
%1:_(s64) = G_ANYEXT %0
|
|
$vgpr0_vgpr1 = COPY %1
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_s64
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_s64
|
|
; CHECK: [[DEF:%[0-9]+]]:_(s64) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0_vgpr1 = COPY [[DEF]](s64)
|
|
%0:_(s64) = G_IMPLICIT_DEF
|
|
$vgpr0_vgpr1 = COPY %0
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_s65
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_s65
|
|
; CHECK: [[DEF:%[0-9]+]]:_(s128) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: [[TRUNC:%[0-9]+]]:_(s96) = G_TRUNC [[DEF]](s128)
|
|
; CHECK-NEXT: $vgpr0_vgpr1_vgpr2 = COPY [[TRUNC]](s96)
|
|
%0:_(s65) = G_IMPLICIT_DEF
|
|
%1:_(s96) = G_ANYEXT %0
|
|
$vgpr0_vgpr1_vgpr2 = COPY %1
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_s128
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_s128
|
|
; CHECK: [[DEF:%[0-9]+]]:_(s128) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0_vgpr1_vgpr2_vgpr3 = COPY [[DEF]](s128)
|
|
%0:_(s128) = G_IMPLICIT_DEF
|
|
$vgpr0_vgpr1_vgpr2_vgpr3 = COPY %0
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_256
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_256
|
|
; CHECK: [[DEF:%[0-9]+]]:_(s256) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7 = COPY [[DEF]](s256)
|
|
%0:_(s256) = G_IMPLICIT_DEF
|
|
$vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7 = COPY %0
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_s448
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_s448
|
|
; CHECK: [[DEF:%[0-9]+]]:_(s32) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0 = COPY [[DEF]](s32)
|
|
%0:_(s448) = G_IMPLICIT_DEF
|
|
%1:_(s32) = G_EXTRACT %0, 0
|
|
$vgpr0 = COPY %1
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_s512
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_s512
|
|
; CHECK: [[DEF:%[0-9]+]]:_(s32) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0 = COPY [[DEF]](s32)
|
|
%0:_(s512) = G_IMPLICIT_DEF
|
|
%1:_(s32) = G_EXTRACT %0, 0
|
|
$vgpr0 = COPY %1
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_s1024
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_s1024
|
|
; CHECK: [[DEF:%[0-9]+]]:_(s32) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0 = COPY [[DEF]](s32)
|
|
%0:_(s1024) = G_IMPLICIT_DEF
|
|
%1:_(s32) = G_EXTRACT %0, 0
|
|
$vgpr0 = COPY %1
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_s1056
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_s1056
|
|
; CHECK: [[DEF:%[0-9]+]]:_(s32) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0 = COPY [[DEF]](s32)
|
|
%0:_(s1056) = G_IMPLICIT_DEF
|
|
%1:_(s32) = G_TRUNC %0
|
|
$vgpr0 = COPY %1
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_s2048
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_s2048
|
|
; CHECK: [[DEF:%[0-9]+]]:_(s1024) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: [[TRUNC:%[0-9]+]]:_(s32) = G_TRUNC [[DEF]](s1024)
|
|
; CHECK-NEXT: $vgpr0 = COPY [[TRUNC]](s32)
|
|
%0:_(s2048) = G_IMPLICIT_DEF
|
|
%1:_(s32) = G_TRUNC %0
|
|
$vgpr0 = COPY %1
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_v2s32
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_v2s32
|
|
; CHECK: [[DEF:%[0-9]+]]:_(<2 x s32>) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0_vgpr1 = COPY [[DEF]](<2 x s32>)
|
|
%0:_(<2 x s32>) = G_IMPLICIT_DEF
|
|
$vgpr0_vgpr1 = COPY %0
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_v3s32
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_v3s32
|
|
; CHECK: [[DEF:%[0-9]+]]:_(<3 x s32>) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0_vgpr1_vgpr2 = COPY [[DEF]](<3 x s32>)
|
|
%0:_(<3 x s32>) = G_IMPLICIT_DEF
|
|
$vgpr0_vgpr1_vgpr2 = COPY %0
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_v4s32
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_v4s32
|
|
; CHECK: [[DEF:%[0-9]+]]:_(<4 x s32>) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0_vgpr1_vgpr2_vgpr3 = COPY [[DEF]](<4 x s32>)
|
|
%0:_(<4 x s32>) = G_IMPLICIT_DEF
|
|
$vgpr0_vgpr1_vgpr2_vgpr3 = COPY %0
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_v5s32
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_v5s32
|
|
; CHECK: [[DEF:%[0-9]+]]:_(<5 x s32>) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: S_NOP 0, implicit [[DEF]](<5 x s32>)
|
|
%0:_(<5 x s32>) = G_IMPLICIT_DEF
|
|
S_NOP 0, implicit %0
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_v6s32
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_v6s32
|
|
; CHECK: [[DEF:%[0-9]+]]:_(<6 x s32>) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: S_NOP 0, implicit [[DEF]](<6 x s32>)
|
|
%0:_(<6 x s32>) = G_IMPLICIT_DEF
|
|
S_NOP 0, implicit %0
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_v7s32
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_v7s32
|
|
; CHECK: [[DEF:%[0-9]+]]:_(<7 x s32>) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: S_NOP 0, implicit [[DEF]](<7 x s32>)
|
|
%0:_(<7 x s32>) = G_IMPLICIT_DEF
|
|
S_NOP 0, implicit %0
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_v8s32
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_v8s32
|
|
; CHECK: [[DEF:%[0-9]+]]:_(<8 x s32>) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7 = COPY [[DEF]](<8 x s32>)
|
|
%0:_(<8 x s32>) = G_IMPLICIT_DEF
|
|
$vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7 = COPY %0
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_v16s32
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_v16s32
|
|
; CHECK: [[DEF:%[0-9]+]]:_(<16 x s32>) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15 = COPY [[DEF]](<16 x s32>)
|
|
%0:_(<16 x s32>) = G_IMPLICIT_DEF
|
|
$vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15 = COPY %0
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_v32s32
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_v32s32
|
|
; CHECK: [[DEF:%[0-9]+]]:_(<32 x s32>) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: S_NOP 0, implicit [[DEF]](<32 x s32>)
|
|
%0:_(<32 x s32>) = G_IMPLICIT_DEF
|
|
S_NOP 0, implicit %0
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_v33s32
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0_vgpr1
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_v33s32
|
|
; CHECK: liveins: $vgpr0_vgpr1
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: [[DEF:%[0-9]+]]:_(s32) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p1) = COPY $vgpr0_vgpr1
|
|
; CHECK-NEXT: G_STORE [[DEF]](s32), [[COPY]](p1) :: (volatile store (s32), addrspace 1)
|
|
; CHECK-NEXT: G_STORE [[DEF]](s32), [[COPY]](p1) :: (volatile store (s32), addrspace 1)
|
|
%0:_(<33 x s32>) = G_IMPLICIT_DEF
|
|
%1:_(s32), %2:_(s32), %3:_(s32), %4:_(s32), %5:_(s32), %6:_(s32), %7:_(s32), %8:_(s32), %9:_(s32), %10:_(s32), %11:_(s32), %12:_(s32), %13:_(s32), %14:_(s32), %15:_(s32), %16:_(s32), %17:_(s32), %18:_(s32), %19:_(s32), %20:_(s32), %21:_(s32), %22:_(s32), %23:_(s32), %24:_(s32), %25:_(s32), %26:_(s32), %27:_(s32), %28:_(s32), %29:_(s32), %30:_(s32), %31:_(s32), %32:_(s32), %33:_(s32) = G_UNMERGE_VALUES %0
|
|
%34:_(p1) = COPY $vgpr0_vgpr1
|
|
G_STORE %1, %34 :: (volatile store (s32), align 4, addrspace 1)
|
|
G_STORE %33, %34 :: (volatile store (s32), align 4, addrspace 1)
|
|
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_v64s32
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_v64s32
|
|
; CHECK: [[DEF:%[0-9]+]]:_(<32 x s32>) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: [[CONCAT_VECTORS:%[0-9]+]]:_(<64 x s32>) = G_CONCAT_VECTORS [[DEF]](<32 x s32>), [[DEF]](<32 x s32>)
|
|
; CHECK-NEXT: S_NOP 0, implicit [[CONCAT_VECTORS]](<64 x s32>), implicit [[DEF]](<32 x s32>)
|
|
%0:_(<64 x s32>) = G_IMPLICIT_DEF
|
|
%1:_(<32 x s32>), %2:_(<32 x s32>) = G_UNMERGE_VALUES %0
|
|
S_NOP 0, implicit %0, implicit %1
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_v2s1
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_v2s1
|
|
; CHECK: [[DEF:%[0-9]+]]:_(<2 x s32>) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0_vgpr1 = COPY [[DEF]](<2 x s32>)
|
|
%0:_(<2 x s1>) = G_IMPLICIT_DEF
|
|
%1:_(<2 x s32>) = G_ANYEXT %0
|
|
$vgpr0_vgpr1 = COPY %1
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_v3s1
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_v3s1
|
|
; CHECK: [[DEF:%[0-9]+]]:_(<3 x s32>) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0_vgpr1_vgpr2 = COPY [[DEF]](<3 x s32>)
|
|
%0:_(<3 x s1>) = G_IMPLICIT_DEF
|
|
%1:_(<3 x s32>) = G_ANYEXT %0
|
|
$vgpr0_vgpr1_vgpr2 = COPY %1
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_v2s8
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_v2s8
|
|
; CHECK: [[DEF:%[0-9]+]]:_(<2 x s32>) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0_vgpr1 = COPY [[DEF]](<2 x s32>)
|
|
%0:_(<2 x s8>) = G_IMPLICIT_DEF
|
|
%1:_(<2 x s32>) = G_ANYEXT %0
|
|
$vgpr0_vgpr1 = COPY %1
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_v3s8
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_v3s8
|
|
; CHECK: [[DEF:%[0-9]+]]:_(s32) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: [[BUILD_VECTOR:%[0-9]+]]:_(<3 x s32>) = G_BUILD_VECTOR [[DEF]](s32), [[DEF]](s32), [[DEF]](s32)
|
|
; CHECK-NEXT: $vgpr0_vgpr1_vgpr2 = COPY [[BUILD_VECTOR]](<3 x s32>)
|
|
%0:_(<3 x s8>) = G_IMPLICIT_DEF
|
|
%1:_(<3 x s32>) = G_ANYEXT %0
|
|
$vgpr0_vgpr1_vgpr2 = COPY %1
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_v2s16
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_v2s16
|
|
; CHECK: [[DEF:%[0-9]+]]:_(<2 x s16>) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0 = COPY [[DEF]](<2 x s16>)
|
|
%0:_(<2 x s16>) = G_IMPLICIT_DEF
|
|
$vgpr0 = COPY %0
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_v3s16
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_v3s16
|
|
; CHECK: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 0
|
|
; CHECK-NEXT: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 16
|
|
; CHECK-NEXT: [[SHL:%[0-9]+]]:_(s32) = G_SHL [[C]], [[C1]](s32)
|
|
; CHECK-NEXT: [[OR:%[0-9]+]]:_(s32) = G_OR [[C]], [[SHL]]
|
|
; CHECK-NEXT: [[BITCAST:%[0-9]+]]:_(<2 x s16>) = G_BITCAST [[OR]](s32)
|
|
; CHECK-NEXT: [[SHL1:%[0-9]+]]:_(s32) = G_SHL [[C]], [[C1]](s32)
|
|
; CHECK-NEXT: [[OR1:%[0-9]+]]:_(s32) = G_OR [[C]], [[SHL1]]
|
|
; CHECK-NEXT: [[BITCAST1:%[0-9]+]]:_(<2 x s16>) = G_BITCAST [[OR1]](s32)
|
|
; CHECK-NEXT: [[CONCAT_VECTORS:%[0-9]+]]:_(<4 x s16>) = G_CONCAT_VECTORS [[BITCAST]](<2 x s16>), [[BITCAST1]](<2 x s16>)
|
|
; CHECK-NEXT: $vgpr0_vgpr1 = COPY [[CONCAT_VECTORS]](<4 x s16>)
|
|
%0:_(<3 x s16>) = G_IMPLICIT_DEF
|
|
%1:_(<4 x s16>) = G_IMPLICIT_DEF
|
|
%2:_(<4 x s16>) = G_INSERT %1, %0, 0
|
|
$vgpr0_vgpr1 = COPY %2
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_v4s16
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_v4s16
|
|
; CHECK: [[DEF:%[0-9]+]]:_(<4 x s16>) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0_vgpr1 = COPY [[DEF]](<4 x s16>)
|
|
%0:_(<4 x s16>) = G_IMPLICIT_DEF
|
|
$vgpr0_vgpr1 = COPY %0
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_v5s16
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_v5s16
|
|
; CHECK: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 0
|
|
; CHECK-NEXT: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 16
|
|
; CHECK-NEXT: [[SHL:%[0-9]+]]:_(s32) = G_SHL [[C]], [[C1]](s32)
|
|
; CHECK-NEXT: [[OR:%[0-9]+]]:_(s32) = G_OR [[C]], [[SHL]]
|
|
; CHECK-NEXT: [[BITCAST:%[0-9]+]]:_(<2 x s16>) = G_BITCAST [[OR]](s32)
|
|
; CHECK-NEXT: [[SHL1:%[0-9]+]]:_(s32) = G_SHL [[C]], [[C1]](s32)
|
|
; CHECK-NEXT: [[OR1:%[0-9]+]]:_(s32) = G_OR [[C]], [[SHL1]]
|
|
; CHECK-NEXT: [[BITCAST1:%[0-9]+]]:_(<2 x s16>) = G_BITCAST [[OR1]](s32)
|
|
; CHECK-NEXT: [[SHL2:%[0-9]+]]:_(s32) = G_SHL [[C]], [[C1]](s32)
|
|
; CHECK-NEXT: [[OR2:%[0-9]+]]:_(s32) = G_OR [[C]], [[SHL2]]
|
|
; CHECK-NEXT: [[BITCAST2:%[0-9]+]]:_(<2 x s16>) = G_BITCAST [[OR2]](s32)
|
|
; CHECK-NEXT: [[SHL3:%[0-9]+]]:_(s32) = G_SHL [[C]], [[C1]](s32)
|
|
; CHECK-NEXT: [[OR3:%[0-9]+]]:_(s32) = G_OR [[C]], [[SHL3]]
|
|
; CHECK-NEXT: [[BITCAST3:%[0-9]+]]:_(<2 x s16>) = G_BITCAST [[OR3]](s32)
|
|
; CHECK-NEXT: [[CONCAT_VECTORS:%[0-9]+]]:_(<8 x s16>) = G_CONCAT_VECTORS [[BITCAST]](<2 x s16>), [[BITCAST1]](<2 x s16>), [[BITCAST2]](<2 x s16>), [[BITCAST3]](<2 x s16>)
|
|
; CHECK-NEXT: $vgpr0_vgpr1_vgpr2_vgpr3 = COPY [[CONCAT_VECTORS]](<8 x s16>)
|
|
%0:_(<5 x s16>) = G_IMPLICIT_DEF
|
|
%1:_(<8 x s16>) = G_IMPLICIT_DEF
|
|
%2:_(<8 x s16>) = G_INSERT %1, %0, 0
|
|
$vgpr0_vgpr1_vgpr2_vgpr3 = COPY %2
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_v6s16
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_v6s16
|
|
; CHECK: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 0
|
|
; CHECK-NEXT: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 16
|
|
; CHECK-NEXT: [[SHL:%[0-9]+]]:_(s32) = G_SHL [[C]], [[C1]](s32)
|
|
; CHECK-NEXT: [[OR:%[0-9]+]]:_(s32) = G_OR [[C]], [[SHL]]
|
|
; CHECK-NEXT: [[BITCAST:%[0-9]+]]:_(<2 x s16>) = G_BITCAST [[OR]](s32)
|
|
; CHECK-NEXT: [[SHL1:%[0-9]+]]:_(s32) = G_SHL [[C]], [[C1]](s32)
|
|
; CHECK-NEXT: [[OR1:%[0-9]+]]:_(s32) = G_OR [[C]], [[SHL1]]
|
|
; CHECK-NEXT: [[BITCAST1:%[0-9]+]]:_(<2 x s16>) = G_BITCAST [[OR1]](s32)
|
|
; CHECK-NEXT: [[SHL2:%[0-9]+]]:_(s32) = G_SHL [[C]], [[C1]](s32)
|
|
; CHECK-NEXT: [[OR2:%[0-9]+]]:_(s32) = G_OR [[C]], [[SHL2]]
|
|
; CHECK-NEXT: [[BITCAST2:%[0-9]+]]:_(<2 x s16>) = G_BITCAST [[OR2]](s32)
|
|
; CHECK-NEXT: [[SHL3:%[0-9]+]]:_(s32) = G_SHL [[C]], [[C1]](s32)
|
|
; CHECK-NEXT: [[OR3:%[0-9]+]]:_(s32) = G_OR [[C]], [[SHL3]]
|
|
; CHECK-NEXT: [[BITCAST3:%[0-9]+]]:_(<2 x s16>) = G_BITCAST [[OR3]](s32)
|
|
; CHECK-NEXT: [[CONCAT_VECTORS:%[0-9]+]]:_(<8 x s16>) = G_CONCAT_VECTORS [[BITCAST]](<2 x s16>), [[BITCAST1]](<2 x s16>), [[BITCAST2]](<2 x s16>), [[BITCAST3]](<2 x s16>)
|
|
; CHECK-NEXT: $vgpr0_vgpr1_vgpr2_vgpr3 = COPY [[CONCAT_VECTORS]](<8 x s16>)
|
|
%0:_(<6 x s16>) = G_IMPLICIT_DEF
|
|
%1:_(<8 x s16>) = G_IMPLICIT_DEF
|
|
%2:_(<8 x s16>) = G_INSERT %1, %0, 0
|
|
$vgpr0_vgpr1_vgpr2_vgpr3 = COPY %2
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_v8s16
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_v8s16
|
|
; CHECK: [[DEF:%[0-9]+]]:_(<8 x s16>) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0_vgpr1_vgpr2_vgpr3 = COPY [[DEF]](<8 x s16>)
|
|
%0:_(<8 x s16>) = G_IMPLICIT_DEF
|
|
$vgpr0_vgpr1_vgpr2_vgpr3 = COPY %0
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_v2s64
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_v2s64
|
|
; CHECK: [[DEF:%[0-9]+]]:_(<2 x s64>) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0_vgpr1_vgpr2_vgpr3 = COPY [[DEF]](<2 x s64>)
|
|
%0:_(<2 x s64>) = G_IMPLICIT_DEF
|
|
$vgpr0_vgpr1_vgpr2_vgpr3 = COPY %0
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_v4s8
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_v4s8
|
|
; CHECK: [[DEF:%[0-9]+]]:_(<4 x s32>) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: [[TRUNC:%[0-9]+]]:_(<4 x s8>) = G_TRUNC [[DEF]](<4 x s32>)
|
|
; CHECK-NEXT: $vgpr0 = COPY [[TRUNC]](<4 x s8>)
|
|
%0:_(<4 x s8>) = G_IMPLICIT_DEF
|
|
$vgpr0 = COPY %0
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_p0
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_p0
|
|
; CHECK: [[DEF:%[0-9]+]]:_(p0) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0_vgpr1 = COPY [[DEF]](p0)
|
|
%0:_(p0) = G_IMPLICIT_DEF
|
|
$vgpr0_vgpr1 = COPY %0
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_p1
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_p1
|
|
; CHECK: [[DEF:%[0-9]+]]:_(p1) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0_vgpr1 = COPY [[DEF]](p1)
|
|
%0:_(p1) = G_IMPLICIT_DEF
|
|
$vgpr0_vgpr1 = COPY %0
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_p2
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_p2
|
|
; CHECK: [[DEF:%[0-9]+]]:_(p2) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0 = COPY [[DEF]](p2)
|
|
%0:_(p2) = G_IMPLICIT_DEF
|
|
$vgpr0 = COPY %0
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_p3
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_p3
|
|
; CHECK: [[DEF:%[0-9]+]]:_(p3) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0 = COPY [[DEF]](p3)
|
|
%0:_(p3) = G_IMPLICIT_DEF
|
|
$vgpr0 = COPY %0
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_p4
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_p4
|
|
; CHECK: [[DEF:%[0-9]+]]:_(p4) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0_vgpr1 = COPY [[DEF]](p4)
|
|
%0:_(p4) = G_IMPLICIT_DEF
|
|
$vgpr0_vgpr1 = COPY %0
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_p5
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_p5
|
|
; CHECK: [[DEF:%[0-9]+]]:_(p5) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0 = COPY [[DEF]](p5)
|
|
%0:_(p5) = G_IMPLICIT_DEF
|
|
$vgpr0 = COPY %0
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_p999
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_p999
|
|
; CHECK: [[DEF:%[0-9]+]]:_(p999) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: $vgpr0_vgpr1 = COPY [[DEF]](p999)
|
|
%0:_(p999) = G_IMPLICIT_DEF
|
|
$vgpr0_vgpr1 = COPY %0
|
|
|
|
...
|
|
|
|
---
|
|
name: test_implicit_def_v2s1024
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_v2s1024
|
|
; CHECK: [[DEF:%[0-9]+]]:_(<2 x s1024>) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: [[UV:%[0-9]+]]:_(s1024), [[UV1:%[0-9]+]]:_(s1024) = G_UNMERGE_VALUES [[DEF]](<2 x s1024>)
|
|
; CHECK-NEXT: S_ENDPGM 0, implicit [[UV]](s1024), implicit [[UV1]](s1024)
|
|
%0:_(<2 x s1024>) = G_IMPLICIT_DEF
|
|
%1:_(s1024), %2:_(s1024) = G_UNMERGE_VALUES %0
|
|
S_ENDPGM 0, implicit %1, implicit %2
|
|
...
|
|
|
|
---
|
|
|
|
name: test_implicit_def_v3s1024
|
|
body: |
|
|
bb.0:
|
|
|
|
; CHECK-LABEL: name: test_implicit_def_v3s1024
|
|
; CHECK: [[DEF:%[0-9]+]]:_(<3 x s1024>) = G_IMPLICIT_DEF
|
|
; CHECK-NEXT: [[UV:%[0-9]+]]:_(s1024), [[UV1:%[0-9]+]]:_(s1024), [[UV2:%[0-9]+]]:_(s1024) = G_UNMERGE_VALUES [[DEF]](<3 x s1024>)
|
|
; CHECK-NEXT: S_ENDPGM 0, implicit [[UV]](s1024), implicit [[UV1]](s1024), implicit [[UV2]](s1024)
|
|
%0:_(<3 x s1024>) = G_IMPLICIT_DEF
|
|
%1:_(s1024), %2:_(s1024), %3:_(s1024) = G_UNMERGE_VALUES %0
|
|
S_ENDPGM 0, implicit %1, implicit %2, implicit %3
|
|
...
|