forked from OSchip/llvm-project
825 lines
35 KiB
YAML
825 lines
35 KiB
YAML
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
|
# RUN: llc -mtriple=amdgcn-amd-amdhsa -O0 -run-pass=legalizer %s -o - | FileCheck %s
|
|
|
|
---
|
|
name: legal_v2s32
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1
|
|
; CHECK-LABEL: name: legal_v2s32
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<2 x s32>) = G_BUILD_VECTOR [[COPY]](s32), [[COPY1]](s32)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<2 x s32>)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(<2 x s32>) = G_BUILD_VECTOR %0, %1
|
|
S_NOP 0, implicit %2
|
|
...
|
|
---
|
|
name: legal_v3s32
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1, $vgpr2
|
|
; CHECK-LABEL: name: legal_v3s32
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY $vgpr2
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<3 x s32>) = G_BUILD_VECTOR [[COPY]](s32), [[COPY1]](s32), [[COPY2]](s32)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<3 x s32>)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(s32) = COPY $vgpr2
|
|
%3:_(<3 x s32>) = G_BUILD_VECTOR %0, %1, %2
|
|
S_NOP 0, implicit %3
|
|
...
|
|
---
|
|
name: legal_v4s32
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1, $vgpr2, $vgpr3
|
|
; CHECK-LABEL: name: legal_v4s32
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY $vgpr2
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY $vgpr3
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<4 x s32>) = G_BUILD_VECTOR [[COPY]](s32), [[COPY1]](s32), [[COPY2]](s32), [[COPY3]](s32)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<4 x s32>)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(s32) = COPY $vgpr2
|
|
%3:_(s32) = COPY $vgpr3
|
|
%4:_(<4 x s32>) = G_BUILD_VECTOR %0, %1, %2, %3
|
|
S_NOP 0, implicit %4
|
|
...
|
|
---
|
|
name: legal_v5s32
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1, $vgpr2, $vgpr3, $vgpr4
|
|
; CHECK-LABEL: name: legal_v5s32
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY $vgpr2
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY $vgpr3
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s32) = COPY $vgpr4
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<5 x s32>) = G_BUILD_VECTOR [[COPY]](s32), [[COPY1]](s32), [[COPY2]](s32), [[COPY3]](s32), [[COPY4]](s32)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<5 x s32>)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(s32) = COPY $vgpr2
|
|
%3:_(s32) = COPY $vgpr3
|
|
%4:_(s32) = COPY $vgpr4
|
|
%5:_(<5 x s32>) = G_BUILD_VECTOR %0, %1, %2, %3, %4
|
|
S_NOP 0, implicit %5
|
|
...
|
|
---
|
|
name: legal_v6s32
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1, $vgpr2, $vgpr3, $vgpr4, $vgpr5
|
|
; CHECK-LABEL: name: legal_v6s32
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY $vgpr2
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY $vgpr3
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s32) = COPY $vgpr4
|
|
; CHECK: [[COPY5:%[0-9]+]]:_(s32) = COPY $vgpr5
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<6 x s32>) = G_BUILD_VECTOR [[COPY]](s32), [[COPY1]](s32), [[COPY2]](s32), [[COPY3]](s32), [[COPY4]](s32), [[COPY5]](s32)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<6 x s32>)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(s32) = COPY $vgpr2
|
|
%3:_(s32) = COPY $vgpr3
|
|
%4:_(s32) = COPY $vgpr4
|
|
%5:_(s32) = COPY $vgpr5
|
|
%6:_(<6 x s32>) = G_BUILD_VECTOR %0, %1, %2, %3, %4, %5
|
|
S_NOP 0, implicit %6
|
|
...
|
|
---
|
|
name: legal_v7s32
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1, $vgpr2, $vgpr3, $vgpr4, $vgpr5, $vgpr6
|
|
; CHECK-LABEL: name: legal_v7s32
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY $vgpr2
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY $vgpr3
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s32) = COPY $vgpr4
|
|
; CHECK: [[COPY5:%[0-9]+]]:_(s32) = COPY $vgpr5
|
|
; CHECK: [[COPY6:%[0-9]+]]:_(s32) = COPY $vgpr6
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<7 x s32>) = G_BUILD_VECTOR [[COPY]](s32), [[COPY1]](s32), [[COPY2]](s32), [[COPY3]](s32), [[COPY4]](s32), [[COPY5]](s32), [[COPY6]](s32)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<7 x s32>)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(s32) = COPY $vgpr2
|
|
%3:_(s32) = COPY $vgpr3
|
|
%4:_(s32) = COPY $vgpr4
|
|
%5:_(s32) = COPY $vgpr5
|
|
%6:_(s32) = COPY $vgpr6
|
|
%7:_(<7 x s32>) = G_BUILD_VECTOR %0, %1, %2, %3, %4, %5, %6
|
|
S_NOP 0, implicit %7
|
|
...
|
|
---
|
|
name: legal_v8s32
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1, $vgpr2, $vgpr3, $vgpr4, $vgpr5, $vgpr6, $vgpr7
|
|
; CHECK-LABEL: name: legal_v8s32
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY $vgpr2
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY $vgpr3
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s32) = COPY $vgpr4
|
|
; CHECK: [[COPY5:%[0-9]+]]:_(s32) = COPY $vgpr5
|
|
; CHECK: [[COPY6:%[0-9]+]]:_(s32) = COPY $vgpr6
|
|
; CHECK: [[COPY7:%[0-9]+]]:_(s32) = COPY $vgpr7
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<8 x s32>) = G_BUILD_VECTOR [[COPY]](s32), [[COPY1]](s32), [[COPY2]](s32), [[COPY3]](s32), [[COPY4]](s32), [[COPY5]](s32), [[COPY6]](s32), [[COPY7]](s32)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<8 x s32>)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(s32) = COPY $vgpr2
|
|
%3:_(s32) = COPY $vgpr3
|
|
%4:_(s32) = COPY $vgpr4
|
|
%5:_(s32) = COPY $vgpr5
|
|
%6:_(s32) = COPY $vgpr6
|
|
%7:_(s32) = COPY $vgpr7
|
|
%8:_(<8 x s32>) = G_BUILD_VECTOR %0, %1, %2, %3, %4, %5, %6, %7
|
|
S_NOP 0, implicit %8
|
|
...
|
|
---
|
|
name: legal_v9s32
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1, $vgpr2, $vgpr3, $vgpr4, $vgpr5, $vgpr6, $vgpr7, $vgpr8
|
|
; CHECK-LABEL: name: legal_v9s32
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY $vgpr2
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY $vgpr3
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s32) = COPY $vgpr4
|
|
; CHECK: [[COPY5:%[0-9]+]]:_(s32) = COPY $vgpr5
|
|
; CHECK: [[COPY6:%[0-9]+]]:_(s32) = COPY $vgpr6
|
|
; CHECK: [[COPY7:%[0-9]+]]:_(s32) = COPY $vgpr7
|
|
; CHECK: [[COPY8:%[0-9]+]]:_(s32) = COPY $vgpr8
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<9 x s32>) = G_BUILD_VECTOR [[COPY]](s32), [[COPY1]](s32), [[COPY2]](s32), [[COPY3]](s32), [[COPY4]](s32), [[COPY5]](s32), [[COPY6]](s32), [[COPY7]](s32), [[COPY8]](s32)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<9 x s32>)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(s32) = COPY $vgpr2
|
|
%3:_(s32) = COPY $vgpr3
|
|
%4:_(s32) = COPY $vgpr4
|
|
%5:_(s32) = COPY $vgpr5
|
|
%6:_(s32) = COPY $vgpr6
|
|
%7:_(s32) = COPY $vgpr7
|
|
%8:_(s32) = COPY $vgpr8
|
|
%9:_(<9 x s32>) = G_BUILD_VECTOR %0, %1, %2, %3, %4, %5, %6, %7, %8
|
|
S_NOP 0, implicit %9
|
|
...
|
|
---
|
|
name: legal_v10s32
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1, $vgpr2, $vgpr3, $vgpr4, $vgpr5, $vgpr6, $vgpr7, $vgpr8, $vgpr9
|
|
; CHECK-LABEL: name: legal_v10s32
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY $vgpr2
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY $vgpr3
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s32) = COPY $vgpr4
|
|
; CHECK: [[COPY5:%[0-9]+]]:_(s32) = COPY $vgpr5
|
|
; CHECK: [[COPY6:%[0-9]+]]:_(s32) = COPY $vgpr6
|
|
; CHECK: [[COPY7:%[0-9]+]]:_(s32) = COPY $vgpr7
|
|
; CHECK: [[COPY8:%[0-9]+]]:_(s32) = COPY $vgpr8
|
|
; CHECK: [[COPY9:%[0-9]+]]:_(s32) = COPY $vgpr9
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<10 x s32>) = G_BUILD_VECTOR [[COPY]](s32), [[COPY1]](s32), [[COPY2]](s32), [[COPY3]](s32), [[COPY4]](s32), [[COPY5]](s32), [[COPY6]](s32), [[COPY7]](s32), [[COPY8]](s32), [[COPY9]](s32)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<10 x s32>)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(s32) = COPY $vgpr2
|
|
%3:_(s32) = COPY $vgpr3
|
|
%4:_(s32) = COPY $vgpr4
|
|
%5:_(s32) = COPY $vgpr5
|
|
%6:_(s32) = COPY $vgpr6
|
|
%7:_(s32) = COPY $vgpr7
|
|
%8:_(s32) = COPY $vgpr8
|
|
%9:_(s32) = COPY $vgpr9
|
|
%10:_(<10 x s32>) = G_BUILD_VECTOR %0, %1, %2, %3, %4, %5, %6, %7, %8, %9
|
|
S_NOP 0, implicit %10
|
|
...
|
|
---
|
|
name: legal_v11s32
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1, $vgpr2, $vgpr3, $vgpr4, $vgpr5, $vgpr6, $vgpr7, $vgpr8, $vgpr9, $vgpr10
|
|
; CHECK-LABEL: name: legal_v11s32
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY $vgpr2
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY $vgpr3
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s32) = COPY $vgpr4
|
|
; CHECK: [[COPY5:%[0-9]+]]:_(s32) = COPY $vgpr5
|
|
; CHECK: [[COPY6:%[0-9]+]]:_(s32) = COPY $vgpr6
|
|
; CHECK: [[COPY7:%[0-9]+]]:_(s32) = COPY $vgpr7
|
|
; CHECK: [[COPY8:%[0-9]+]]:_(s32) = COPY $vgpr8
|
|
; CHECK: [[COPY9:%[0-9]+]]:_(s32) = COPY $vgpr9
|
|
; CHECK: [[COPY10:%[0-9]+]]:_(s32) = COPY $vgpr10
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<11 x s32>) = G_BUILD_VECTOR [[COPY]](s32), [[COPY1]](s32), [[COPY2]](s32), [[COPY3]](s32), [[COPY4]](s32), [[COPY5]](s32), [[COPY6]](s32), [[COPY7]](s32), [[COPY8]](s32), [[COPY9]](s32), [[COPY10]](s32)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<11 x s32>)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(s32) = COPY $vgpr2
|
|
%3:_(s32) = COPY $vgpr3
|
|
%4:_(s32) = COPY $vgpr4
|
|
%5:_(s32) = COPY $vgpr5
|
|
%6:_(s32) = COPY $vgpr6
|
|
%7:_(s32) = COPY $vgpr7
|
|
%8:_(s32) = COPY $vgpr8
|
|
%9:_(s32) = COPY $vgpr9
|
|
%10:_(s32) = COPY $vgpr10
|
|
%11:_(<11 x s32>) = G_BUILD_VECTOR %0, %1, %2, %3, %4, %5, %6, %7, %8, %9, %10
|
|
S_NOP 0, implicit %11
|
|
...
|
|
---
|
|
name: legal_v12s32
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1, $vgpr2, $vgpr3, $vgpr4, $vgpr5, $vgpr6, $vgpr7, $vgpr8, $vgpr9, $vgpr10, $vgpr11
|
|
; CHECK-LABEL: name: legal_v12s32
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY $vgpr2
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY $vgpr3
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s32) = COPY $vgpr4
|
|
; CHECK: [[COPY5:%[0-9]+]]:_(s32) = COPY $vgpr5
|
|
; CHECK: [[COPY6:%[0-9]+]]:_(s32) = COPY $vgpr6
|
|
; CHECK: [[COPY7:%[0-9]+]]:_(s32) = COPY $vgpr7
|
|
; CHECK: [[COPY8:%[0-9]+]]:_(s32) = COPY $vgpr8
|
|
; CHECK: [[COPY9:%[0-9]+]]:_(s32) = COPY $vgpr9
|
|
; CHECK: [[COPY10:%[0-9]+]]:_(s32) = COPY $vgpr10
|
|
; CHECK: [[COPY11:%[0-9]+]]:_(s32) = COPY $vgpr11
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<12 x s32>) = G_BUILD_VECTOR [[COPY]](s32), [[COPY1]](s32), [[COPY2]](s32), [[COPY3]](s32), [[COPY4]](s32), [[COPY5]](s32), [[COPY6]](s32), [[COPY7]](s32), [[COPY8]](s32), [[COPY9]](s32), [[COPY10]](s32), [[COPY11]](s32)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<12 x s32>)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(s32) = COPY $vgpr2
|
|
%3:_(s32) = COPY $vgpr3
|
|
%4:_(s32) = COPY $vgpr4
|
|
%5:_(s32) = COPY $vgpr5
|
|
%6:_(s32) = COPY $vgpr6
|
|
%7:_(s32) = COPY $vgpr7
|
|
%8:_(s32) = COPY $vgpr8
|
|
%9:_(s32) = COPY $vgpr9
|
|
%10:_(s32) = COPY $vgpr10
|
|
%11:_(s32) = COPY $vgpr11
|
|
%12:_(<12 x s32>) = G_BUILD_VECTOR %0, %1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11
|
|
S_NOP 0, implicit %12
|
|
...
|
|
---
|
|
name: legal_v13s32
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1, $vgpr2, $vgpr3, $vgpr4, $vgpr5, $vgpr6, $vgpr7, $vgpr8, $vgpr9, $vgpr10, $vgpr11, $vgpr12
|
|
; CHECK-LABEL: name: legal_v13s32
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY $vgpr2
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY $vgpr3
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s32) = COPY $vgpr4
|
|
; CHECK: [[COPY5:%[0-9]+]]:_(s32) = COPY $vgpr5
|
|
; CHECK: [[COPY6:%[0-9]+]]:_(s32) = COPY $vgpr6
|
|
; CHECK: [[COPY7:%[0-9]+]]:_(s32) = COPY $vgpr7
|
|
; CHECK: [[COPY8:%[0-9]+]]:_(s32) = COPY $vgpr8
|
|
; CHECK: [[COPY9:%[0-9]+]]:_(s32) = COPY $vgpr9
|
|
; CHECK: [[COPY10:%[0-9]+]]:_(s32) = COPY $vgpr10
|
|
; CHECK: [[COPY11:%[0-9]+]]:_(s32) = COPY $vgpr11
|
|
; CHECK: [[COPY12:%[0-9]+]]:_(s32) = COPY $vgpr12
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<13 x s32>) = G_BUILD_VECTOR [[COPY]](s32), [[COPY1]](s32), [[COPY2]](s32), [[COPY3]](s32), [[COPY4]](s32), [[COPY5]](s32), [[COPY6]](s32), [[COPY7]](s32), [[COPY8]](s32), [[COPY9]](s32), [[COPY10]](s32), [[COPY11]](s32), [[COPY12]](s32)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<13 x s32>)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(s32) = COPY $vgpr2
|
|
%3:_(s32) = COPY $vgpr3
|
|
%4:_(s32) = COPY $vgpr4
|
|
%5:_(s32) = COPY $vgpr5
|
|
%6:_(s32) = COPY $vgpr6
|
|
%7:_(s32) = COPY $vgpr7
|
|
%8:_(s32) = COPY $vgpr8
|
|
%9:_(s32) = COPY $vgpr9
|
|
%10:_(s32) = COPY $vgpr10
|
|
%11:_(s32) = COPY $vgpr11
|
|
%12:_(s32) = COPY $vgpr12
|
|
%13:_(<13 x s32>) = G_BUILD_VECTOR %0, %1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11, %12
|
|
S_NOP 0, implicit %13
|
|
...
|
|
---
|
|
name: legal_v14s32
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1, $vgpr2, $vgpr3, $vgpr4, $vgpr5, $vgpr6, $vgpr7, $vgpr8, $vgpr9, $vgpr10, $vgpr11, $vgpr12, $vgpr13
|
|
; CHECK-LABEL: name: legal_v14s32
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY $vgpr2
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY $vgpr3
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s32) = COPY $vgpr4
|
|
; CHECK: [[COPY5:%[0-9]+]]:_(s32) = COPY $vgpr5
|
|
; CHECK: [[COPY6:%[0-9]+]]:_(s32) = COPY $vgpr6
|
|
; CHECK: [[COPY7:%[0-9]+]]:_(s32) = COPY $vgpr7
|
|
; CHECK: [[COPY8:%[0-9]+]]:_(s32) = COPY $vgpr8
|
|
; CHECK: [[COPY9:%[0-9]+]]:_(s32) = COPY $vgpr9
|
|
; CHECK: [[COPY10:%[0-9]+]]:_(s32) = COPY $vgpr10
|
|
; CHECK: [[COPY11:%[0-9]+]]:_(s32) = COPY $vgpr11
|
|
; CHECK: [[COPY12:%[0-9]+]]:_(s32) = COPY $vgpr12
|
|
; CHECK: [[COPY13:%[0-9]+]]:_(s32) = COPY $vgpr13
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<14 x s32>) = G_BUILD_VECTOR [[COPY]](s32), [[COPY1]](s32), [[COPY2]](s32), [[COPY3]](s32), [[COPY4]](s32), [[COPY5]](s32), [[COPY6]](s32), [[COPY7]](s32), [[COPY8]](s32), [[COPY9]](s32), [[COPY10]](s32), [[COPY11]](s32), [[COPY12]](s32), [[COPY13]](s32)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<14 x s32>)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(s32) = COPY $vgpr2
|
|
%3:_(s32) = COPY $vgpr3
|
|
%4:_(s32) = COPY $vgpr4
|
|
%5:_(s32) = COPY $vgpr5
|
|
%6:_(s32) = COPY $vgpr6
|
|
%7:_(s32) = COPY $vgpr7
|
|
%8:_(s32) = COPY $vgpr8
|
|
%9:_(s32) = COPY $vgpr9
|
|
%10:_(s32) = COPY $vgpr10
|
|
%11:_(s32) = COPY $vgpr11
|
|
%12:_(s32) = COPY $vgpr12
|
|
%13:_(s32) = COPY $vgpr13
|
|
%14:_(<14 x s32>) = G_BUILD_VECTOR %0, %1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11, %12, %13
|
|
S_NOP 0, implicit %14
|
|
...
|
|
---
|
|
name: legal_v15s32
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1, $vgpr2, $vgpr3, $vgpr4, $vgpr5, $vgpr6, $vgpr7, $vgpr8, $vgpr9, $vgpr10, $vgpr11, $vgpr12, $vgpr13, $vgpr14
|
|
; CHECK-LABEL: name: legal_v15s32
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY $vgpr2
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY $vgpr3
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s32) = COPY $vgpr4
|
|
; CHECK: [[COPY5:%[0-9]+]]:_(s32) = COPY $vgpr5
|
|
; CHECK: [[COPY6:%[0-9]+]]:_(s32) = COPY $vgpr6
|
|
; CHECK: [[COPY7:%[0-9]+]]:_(s32) = COPY $vgpr7
|
|
; CHECK: [[COPY8:%[0-9]+]]:_(s32) = COPY $vgpr8
|
|
; CHECK: [[COPY9:%[0-9]+]]:_(s32) = COPY $vgpr9
|
|
; CHECK: [[COPY10:%[0-9]+]]:_(s32) = COPY $vgpr10
|
|
; CHECK: [[COPY11:%[0-9]+]]:_(s32) = COPY $vgpr11
|
|
; CHECK: [[COPY12:%[0-9]+]]:_(s32) = COPY $vgpr12
|
|
; CHECK: [[COPY13:%[0-9]+]]:_(s32) = COPY $vgpr13
|
|
; CHECK: [[COPY14:%[0-9]+]]:_(s32) = COPY $vgpr14
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<15 x s32>) = G_BUILD_VECTOR [[COPY]](s32), [[COPY1]](s32), [[COPY2]](s32), [[COPY3]](s32), [[COPY4]](s32), [[COPY5]](s32), [[COPY6]](s32), [[COPY7]](s32), [[COPY8]](s32), [[COPY9]](s32), [[COPY10]](s32), [[COPY11]](s32), [[COPY12]](s32), [[COPY13]](s32), [[COPY14]](s32)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<15 x s32>)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(s32) = COPY $vgpr2
|
|
%3:_(s32) = COPY $vgpr3
|
|
%4:_(s32) = COPY $vgpr4
|
|
%5:_(s32) = COPY $vgpr5
|
|
%6:_(s32) = COPY $vgpr6
|
|
%7:_(s32) = COPY $vgpr7
|
|
%8:_(s32) = COPY $vgpr8
|
|
%9:_(s32) = COPY $vgpr9
|
|
%10:_(s32) = COPY $vgpr10
|
|
%11:_(s32) = COPY $vgpr11
|
|
%12:_(s32) = COPY $vgpr12
|
|
%13:_(s32) = COPY $vgpr13
|
|
%14:_(s32) = COPY $vgpr14
|
|
%15:_(<15 x s32>) = G_BUILD_VECTOR %0, %1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11, %12, %13, %14
|
|
S_NOP 0, implicit %15
|
|
...
|
|
---
|
|
name: legal_v16s32
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1, $vgpr2, $vgpr3, $vgpr4, $vgpr5, $vgpr6, $vgpr7, $vgpr8, $vgpr9, $vgpr10, $vgpr11, $vgpr12, $vgpr13, $vgpr14, $vgpr15
|
|
; CHECK-LABEL: name: legal_v16s32
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY $vgpr2
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY $vgpr3
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s32) = COPY $vgpr4
|
|
; CHECK: [[COPY5:%[0-9]+]]:_(s32) = COPY $vgpr5
|
|
; CHECK: [[COPY6:%[0-9]+]]:_(s32) = COPY $vgpr6
|
|
; CHECK: [[COPY7:%[0-9]+]]:_(s32) = COPY $vgpr7
|
|
; CHECK: [[COPY8:%[0-9]+]]:_(s32) = COPY $vgpr8
|
|
; CHECK: [[COPY9:%[0-9]+]]:_(s32) = COPY $vgpr9
|
|
; CHECK: [[COPY10:%[0-9]+]]:_(s32) = COPY $vgpr10
|
|
; CHECK: [[COPY11:%[0-9]+]]:_(s32) = COPY $vgpr11
|
|
; CHECK: [[COPY12:%[0-9]+]]:_(s32) = COPY $vgpr12
|
|
; CHECK: [[COPY13:%[0-9]+]]:_(s32) = COPY $vgpr13
|
|
; CHECK: [[COPY14:%[0-9]+]]:_(s32) = COPY $vgpr14
|
|
; CHECK: [[COPY15:%[0-9]+]]:_(s32) = COPY $vgpr15
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<16 x s32>) = G_BUILD_VECTOR [[COPY]](s32), [[COPY1]](s32), [[COPY2]](s32), [[COPY3]](s32), [[COPY4]](s32), [[COPY5]](s32), [[COPY6]](s32), [[COPY7]](s32), [[COPY8]](s32), [[COPY9]](s32), [[COPY10]](s32), [[COPY11]](s32), [[COPY12]](s32), [[COPY13]](s32), [[COPY14]](s32), [[COPY15]](s32)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<16 x s32>)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(s32) = COPY $vgpr2
|
|
%3:_(s32) = COPY $vgpr3
|
|
%4:_(s32) = COPY $vgpr4
|
|
%5:_(s32) = COPY $vgpr5
|
|
%6:_(s32) = COPY $vgpr6
|
|
%7:_(s32) = COPY $vgpr7
|
|
%8:_(s32) = COPY $vgpr8
|
|
%9:_(s32) = COPY $vgpr9
|
|
%10:_(s32) = COPY $vgpr10
|
|
%11:_(s32) = COPY $vgpr11
|
|
%12:_(s32) = COPY $vgpr12
|
|
%13:_(s32) = COPY $vgpr13
|
|
%14:_(s32) = COPY $vgpr14
|
|
%15:_(s32) = COPY $vgpr15
|
|
%16:_(<16 x s32>) = G_BUILD_VECTOR %0, %1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11, %12, %13, %14, %15
|
|
S_NOP 0, implicit %16
|
|
...
|
|
---
|
|
name: legal_v32s32
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1, $vgpr2, $vgpr3, $vgpr4, $vgpr5, $vgpr6, $vgpr7, $vgpr8, $vgpr9, $vgpr10, $vgpr11, $vgpr12, $vgpr13, $vgpr14, $vgpr15, $vgpr16, $vgpr17, $vgpr18, $vgpr19, $vgpr20, $vgpr21, $vgpr22, $vgpr23, $vgpr24, $vgpr25, $vgpr26, $vgpr27, $vgpr28, $vgpr29, $vgpr30, $vgpr31
|
|
; CHECK-LABEL: name: legal_v32s32
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $vgpr0
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $vgpr1
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY $vgpr2
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY $vgpr3
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s32) = COPY $vgpr4
|
|
; CHECK: [[COPY5:%[0-9]+]]:_(s32) = COPY $vgpr5
|
|
; CHECK: [[COPY6:%[0-9]+]]:_(s32) = COPY $vgpr6
|
|
; CHECK: [[COPY7:%[0-9]+]]:_(s32) = COPY $vgpr7
|
|
; CHECK: [[COPY8:%[0-9]+]]:_(s32) = COPY $vgpr8
|
|
; CHECK: [[COPY9:%[0-9]+]]:_(s32) = COPY $vgpr9
|
|
; CHECK: [[COPY10:%[0-9]+]]:_(s32) = COPY $vgpr10
|
|
; CHECK: [[COPY11:%[0-9]+]]:_(s32) = COPY $vgpr11
|
|
; CHECK: [[COPY12:%[0-9]+]]:_(s32) = COPY $vgpr12
|
|
; CHECK: [[COPY13:%[0-9]+]]:_(s32) = COPY $vgpr13
|
|
; CHECK: [[COPY14:%[0-9]+]]:_(s32) = COPY $vgpr14
|
|
; CHECK: [[COPY15:%[0-9]+]]:_(s32) = COPY $vgpr15
|
|
; CHECK: [[COPY16:%[0-9]+]]:_(s32) = COPY $vgpr16
|
|
; CHECK: [[COPY17:%[0-9]+]]:_(s32) = COPY $vgpr17
|
|
; CHECK: [[COPY18:%[0-9]+]]:_(s32) = COPY $vgpr18
|
|
; CHECK: [[COPY19:%[0-9]+]]:_(s32) = COPY $vgpr19
|
|
; CHECK: [[COPY20:%[0-9]+]]:_(s32) = COPY $vgpr20
|
|
; CHECK: [[COPY21:%[0-9]+]]:_(s32) = COPY $vgpr21
|
|
; CHECK: [[COPY22:%[0-9]+]]:_(s32) = COPY $vgpr22
|
|
; CHECK: [[COPY23:%[0-9]+]]:_(s32) = COPY $vgpr23
|
|
; CHECK: [[COPY24:%[0-9]+]]:_(s32) = COPY $vgpr24
|
|
; CHECK: [[COPY25:%[0-9]+]]:_(s32) = COPY $vgpr25
|
|
; CHECK: [[COPY26:%[0-9]+]]:_(s32) = COPY $vgpr26
|
|
; CHECK: [[COPY27:%[0-9]+]]:_(s32) = COPY $vgpr27
|
|
; CHECK: [[COPY28:%[0-9]+]]:_(s32) = COPY $vgpr28
|
|
; CHECK: [[COPY29:%[0-9]+]]:_(s32) = COPY $vgpr29
|
|
; CHECK: [[COPY30:%[0-9]+]]:_(s32) = COPY $vgpr30
|
|
; CHECK: [[COPY31:%[0-9]+]]:_(s32) = COPY $vgpr31
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<32 x s32>) = G_BUILD_VECTOR [[COPY]](s32), [[COPY1]](s32), [[COPY2]](s32), [[COPY3]](s32), [[COPY4]](s32), [[COPY5]](s32), [[COPY6]](s32), [[COPY7]](s32), [[COPY8]](s32), [[COPY9]](s32), [[COPY10]](s32), [[COPY11]](s32), [[COPY12]](s32), [[COPY13]](s32), [[COPY14]](s32), [[COPY15]](s32), [[COPY16]](s32), [[COPY17]](s32), [[COPY18]](s32), [[COPY19]](s32), [[COPY20]](s32), [[COPY21]](s32), [[COPY22]](s32), [[COPY23]](s32), [[COPY24]](s32), [[COPY25]](s32), [[COPY26]](s32), [[COPY27]](s32), [[COPY28]](s32), [[COPY29]](s32), [[COPY30]](s32), [[COPY31]](s32)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<32 x s32>)
|
|
%0:_(s32) = COPY $vgpr0
|
|
%1:_(s32) = COPY $vgpr1
|
|
%2:_(s32) = COPY $vgpr2
|
|
%3:_(s32) = COPY $vgpr3
|
|
%4:_(s32) = COPY $vgpr4
|
|
%5:_(s32) = COPY $vgpr5
|
|
%6:_(s32) = COPY $vgpr6
|
|
%7:_(s32) = COPY $vgpr7
|
|
%8:_(s32) = COPY $vgpr8
|
|
%9:_(s32) = COPY $vgpr9
|
|
%10:_(s32) = COPY $vgpr10
|
|
%11:_(s32) = COPY $vgpr11
|
|
%12:_(s32) = COPY $vgpr12
|
|
%13:_(s32) = COPY $vgpr13
|
|
%14:_(s32) = COPY $vgpr14
|
|
%15:_(s32) = COPY $vgpr15
|
|
%16:_(s32) = COPY $vgpr16
|
|
%17:_(s32) = COPY $vgpr17
|
|
%18:_(s32) = COPY $vgpr18
|
|
%19:_(s32) = COPY $vgpr19
|
|
%20:_(s32) = COPY $vgpr20
|
|
%21:_(s32) = COPY $vgpr21
|
|
%22:_(s32) = COPY $vgpr22
|
|
%23:_(s32) = COPY $vgpr23
|
|
%24:_(s32) = COPY $vgpr24
|
|
%25:_(s32) = COPY $vgpr25
|
|
%26:_(s32) = COPY $vgpr26
|
|
%27:_(s32) = COPY $vgpr27
|
|
%28:_(s32) = COPY $vgpr28
|
|
%29:_(s32) = COPY $vgpr29
|
|
%30:_(s32) = COPY $vgpr30
|
|
%31:_(s32) = COPY $vgpr31
|
|
%32:_(<32 x s32>) = G_BUILD_VECTOR %0, %1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11, %12, %13, %14, %15, %16, %17, %18, %19, %20, %21, %22, %23, %24, %25, %26, %27, %28, %29, %30, %31
|
|
S_NOP 0, implicit %32
|
|
...
|
|
---
|
|
name: legal_v2s64
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0_vgpr1, $vgpr2_vgpr3
|
|
; CHECK-LABEL: name: legal_v2s64
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $vgpr0_vgpr1
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s64) = COPY $vgpr2_vgpr3
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<2 x s64>) = G_BUILD_VECTOR [[COPY]](s64), [[COPY1]](s64)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<2 x s64>)
|
|
%0:_(s64) = COPY $vgpr0_vgpr1
|
|
%1:_(s64) = COPY $vgpr2_vgpr3
|
|
%2:_(<2 x s64>) = G_BUILD_VECTOR %0, %1
|
|
S_NOP 0, implicit %2
|
|
...
|
|
---
|
|
name: legal_v3s64
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0_vgpr1, $vgpr2_vgpr3, $vgpr4_vgpr5
|
|
; CHECK-LABEL: name: legal_v3s64
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $vgpr0_vgpr1
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s64) = COPY $vgpr2_vgpr3
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s64) = COPY $vgpr4_vgpr5
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<3 x s64>) = G_BUILD_VECTOR [[COPY]](s64), [[COPY1]](s64), [[COPY2]](s64)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<3 x s64>)
|
|
%0:_(s64) = COPY $vgpr0_vgpr1
|
|
%1:_(s64) = COPY $vgpr2_vgpr3
|
|
%2:_(s64) = COPY $vgpr4_vgpr5
|
|
%3:_(<3 x s64>) = G_BUILD_VECTOR %0, %1, %2
|
|
S_NOP 0, implicit %3
|
|
...
|
|
---
|
|
name: legal_v4s64
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0_vgpr1, $vgpr2_vgpr3, $vgpr4_vgpr5, $vgpr6_vgpr7
|
|
; CHECK-LABEL: name: legal_v4s64
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $vgpr0_vgpr1
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s64) = COPY $vgpr2_vgpr3
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s64) = COPY $vgpr4_vgpr5
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s64) = COPY $vgpr6_vgpr7
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<4 x s64>) = G_BUILD_VECTOR [[COPY]](s64), [[COPY1]](s64), [[COPY2]](s64), [[COPY3]](s64)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<4 x s64>)
|
|
%0:_(s64) = COPY $vgpr0_vgpr1
|
|
%1:_(s64) = COPY $vgpr2_vgpr3
|
|
%2:_(s64) = COPY $vgpr4_vgpr5
|
|
%3:_(s64) = COPY $vgpr6_vgpr7
|
|
%4:_(<4 x s64>) = G_BUILD_VECTOR %0, %1, %2, %3
|
|
S_NOP 0, implicit %4
|
|
...
|
|
---
|
|
name: legal_v5s64
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0_vgpr1, $vgpr2_vgpr3, $vgpr4_vgpr5, $vgpr6_vgpr7, $vgpr8_vgpr9
|
|
; CHECK-LABEL: name: legal_v5s64
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $vgpr0_vgpr1
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s64) = COPY $vgpr2_vgpr3
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s64) = COPY $vgpr4_vgpr5
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s64) = COPY $vgpr6_vgpr7
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s64) = COPY $vgpr8_vgpr9
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<5 x s64>) = G_BUILD_VECTOR [[COPY]](s64), [[COPY1]](s64), [[COPY2]](s64), [[COPY3]](s64), [[COPY4]](s64)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<5 x s64>)
|
|
%0:_(s64) = COPY $vgpr0_vgpr1
|
|
%1:_(s64) = COPY $vgpr2_vgpr3
|
|
%2:_(s64) = COPY $vgpr4_vgpr5
|
|
%3:_(s64) = COPY $vgpr6_vgpr7
|
|
%4:_(s64) = COPY $vgpr8_vgpr9
|
|
%5:_(<5 x s64>) = G_BUILD_VECTOR %0, %1, %2, %3, %4
|
|
S_NOP 0, implicit %5
|
|
...
|
|
---
|
|
name: legal_v6s64
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0_vgpr1, $vgpr2_vgpr3, $vgpr4_vgpr5, $vgpr6_vgpr7, $vgpr8_vgpr9, $vgpr10_vgpr11
|
|
; CHECK-LABEL: name: legal_v6s64
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $vgpr0_vgpr1
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s64) = COPY $vgpr2_vgpr3
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s64) = COPY $vgpr4_vgpr5
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s64) = COPY $vgpr6_vgpr7
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s64) = COPY $vgpr8_vgpr9
|
|
; CHECK: [[COPY5:%[0-9]+]]:_(s64) = COPY $vgpr10_vgpr11
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<6 x s64>) = G_BUILD_VECTOR [[COPY]](s64), [[COPY1]](s64), [[COPY2]](s64), [[COPY3]](s64), [[COPY4]](s64), [[COPY5]](s64)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<6 x s64>)
|
|
%0:_(s64) = COPY $vgpr0_vgpr1
|
|
%1:_(s64) = COPY $vgpr2_vgpr3
|
|
%2:_(s64) = COPY $vgpr4_vgpr5
|
|
%3:_(s64) = COPY $vgpr6_vgpr7
|
|
%4:_(s64) = COPY $vgpr8_vgpr9
|
|
%5:_(s64) = COPY $vgpr10_vgpr11
|
|
%6:_(<6 x s64>) = G_BUILD_VECTOR %0, %1, %2, %3, %4, %5
|
|
S_NOP 0, implicit %6
|
|
...
|
|
---
|
|
name: legal_v7s64
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0_vgpr1, $vgpr2_vgpr3, $vgpr4_vgpr5, $vgpr6_vgpr7, $vgpr8_vgpr9, $vgpr10_vgpr11, $vgpr12_vgpr13
|
|
; CHECK-LABEL: name: legal_v7s64
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $vgpr0_vgpr1
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s64) = COPY $vgpr2_vgpr3
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s64) = COPY $vgpr4_vgpr5
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s64) = COPY $vgpr6_vgpr7
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s64) = COPY $vgpr8_vgpr9
|
|
; CHECK: [[COPY5:%[0-9]+]]:_(s64) = COPY $vgpr10_vgpr11
|
|
; CHECK: [[COPY6:%[0-9]+]]:_(s64) = COPY $vgpr12_vgpr13
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<7 x s64>) = G_BUILD_VECTOR [[COPY]](s64), [[COPY1]](s64), [[COPY2]](s64), [[COPY3]](s64), [[COPY4]](s64), [[COPY5]](s64), [[COPY6]](s64)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<7 x s64>)
|
|
%0:_(s64) = COPY $vgpr0_vgpr1
|
|
%1:_(s64) = COPY $vgpr2_vgpr3
|
|
%2:_(s64) = COPY $vgpr4_vgpr5
|
|
%3:_(s64) = COPY $vgpr6_vgpr7
|
|
%4:_(s64) = COPY $vgpr8_vgpr9
|
|
%5:_(s64) = COPY $vgpr10_vgpr11
|
|
%6:_(s64) = COPY $vgpr12_vgpr13
|
|
%7:_(<7 x s64>) = G_BUILD_VECTOR %0, %1, %2, %3, %4, %5, %6
|
|
S_NOP 0, implicit %7
|
|
...
|
|
---
|
|
name: legal_v8s64
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0_vgpr1, $vgpr2_vgpr3, $vgpr4_vgpr5, $vgpr6_vgpr7, $vgpr8_vgpr9, $vgpr10_vgpr11, $vgpr12_vgpr13, $vgpr14_vgpr15
|
|
; CHECK-LABEL: name: legal_v8s64
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $vgpr0_vgpr1
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s64) = COPY $vgpr2_vgpr3
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s64) = COPY $vgpr4_vgpr5
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s64) = COPY $vgpr6_vgpr7
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s64) = COPY $vgpr8_vgpr9
|
|
; CHECK: [[COPY5:%[0-9]+]]:_(s64) = COPY $vgpr10_vgpr11
|
|
; CHECK: [[COPY6:%[0-9]+]]:_(s64) = COPY $vgpr12_vgpr13
|
|
; CHECK: [[COPY7:%[0-9]+]]:_(s64) = COPY $vgpr14_vgpr15
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<8 x s64>) = G_BUILD_VECTOR [[COPY]](s64), [[COPY1]](s64), [[COPY2]](s64), [[COPY3]](s64), [[COPY4]](s64), [[COPY5]](s64), [[COPY6]](s64), [[COPY7]](s64)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<8 x s64>)
|
|
%0:_(s64) = COPY $vgpr0_vgpr1
|
|
%1:_(s64) = COPY $vgpr2_vgpr3
|
|
%2:_(s64) = COPY $vgpr4_vgpr5
|
|
%3:_(s64) = COPY $vgpr6_vgpr7
|
|
%4:_(s64) = COPY $vgpr8_vgpr9
|
|
%5:_(s64) = COPY $vgpr10_vgpr11
|
|
%6:_(s64) = COPY $vgpr12_vgpr13
|
|
%7:_(s64) = COPY $vgpr14_vgpr15
|
|
%8:_(<8 x s64>) = G_BUILD_VECTOR %0, %1, %2, %3, %4, %5, %6, %7
|
|
S_NOP 0, implicit %8
|
|
...
|
|
|
|
---
|
|
name: legal_v16s64
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0_vgpr1, $vgpr2_vgpr3, $vgpr4_vgpr5, $vgpr6_vgpr7, $vgpr8_vgpr9, $vgpr10_vgpr11, $vgpr12_vgpr13, $vgpr14_vgpr15, $vgpr16_vgpr17, $vgpr18_vgpr19, $vgpr20_vgpr21, $vgpr22_vgpr23, $vgpr24_vgpr25, $vgpr26_vgpr27, $vgpr28_vgpr29, $vgpr30_vgpr31
|
|
; CHECK-LABEL: name: legal_v16s64
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $vgpr0_vgpr1
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s64) = COPY $vgpr2_vgpr3
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s64) = COPY $vgpr4_vgpr5
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s64) = COPY $vgpr6_vgpr7
|
|
; CHECK: [[COPY4:%[0-9]+]]:_(s64) = COPY $vgpr8_vgpr9
|
|
; CHECK: [[COPY5:%[0-9]+]]:_(s64) = COPY $vgpr10_vgpr11
|
|
; CHECK: [[COPY6:%[0-9]+]]:_(s64) = COPY $vgpr12_vgpr13
|
|
; CHECK: [[COPY7:%[0-9]+]]:_(s64) = COPY $vgpr14_vgpr15
|
|
; CHECK: [[COPY8:%[0-9]+]]:_(s64) = COPY $vgpr16_vgpr17
|
|
; CHECK: [[COPY9:%[0-9]+]]:_(s64) = COPY $vgpr18_vgpr19
|
|
; CHECK: [[COPY10:%[0-9]+]]:_(s64) = COPY $vgpr20_vgpr21
|
|
; CHECK: [[COPY11:%[0-9]+]]:_(s64) = COPY $vgpr22_vgpr23
|
|
; CHECK: [[COPY12:%[0-9]+]]:_(s64) = COPY $vgpr24_vgpr25
|
|
; CHECK: [[COPY13:%[0-9]+]]:_(s64) = COPY $vgpr26_vgpr27
|
|
; CHECK: [[COPY14:%[0-9]+]]:_(s64) = COPY $vgpr28_vgpr29
|
|
; CHECK: [[COPY15:%[0-9]+]]:_(s64) = COPY $vgpr30_vgpr31
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<16 x s64>) = G_BUILD_VECTOR [[COPY]](s64), [[COPY1]](s64), [[COPY2]](s64), [[COPY3]](s64), [[COPY4]](s64), [[COPY5]](s64), [[COPY6]](s64), [[COPY7]](s64), [[COPY8]](s64), [[COPY9]](s64), [[COPY10]](s64), [[COPY11]](s64), [[COPY12]](s64), [[COPY13]](s64), [[COPY14]](s64), [[COPY15]](s64)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<16 x s64>)
|
|
%0:_(s64) = COPY $vgpr0_vgpr1
|
|
%1:_(s64) = COPY $vgpr2_vgpr3
|
|
%2:_(s64) = COPY $vgpr4_vgpr5
|
|
%3:_(s64) = COPY $vgpr6_vgpr7
|
|
%4:_(s64) = COPY $vgpr8_vgpr9
|
|
%5:_(s64) = COPY $vgpr10_vgpr11
|
|
%6:_(s64) = COPY $vgpr12_vgpr13
|
|
%7:_(s64) = COPY $vgpr14_vgpr15
|
|
%8:_(s64) = COPY $vgpr16_vgpr17
|
|
%9:_(s64) = COPY $vgpr18_vgpr19
|
|
%10:_(s64) = COPY $vgpr20_vgpr21
|
|
%11:_(s64) = COPY $vgpr22_vgpr23
|
|
%12:_(s64) = COPY $vgpr24_vgpr25
|
|
%13:_(s64) = COPY $vgpr26_vgpr27
|
|
%14:_(s64) = COPY $vgpr28_vgpr29
|
|
%15:_(s64) = COPY $vgpr30_vgpr31
|
|
%16:_(<16 x s64>) = G_BUILD_VECTOR %0, %1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11, %12, %13, %14, %15
|
|
S_NOP 0, implicit %16
|
|
...
|
|
|
|
---
|
|
name: legal_v2s128
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0_vgpr1_vgpr2_vgpr3, $vgpr4_vgpr5_vgpr6_vgpr7
|
|
|
|
; CHECK-LABEL: name: legal_v2s128
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s128) = COPY $vgpr0_vgpr1_vgpr2_vgpr3
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s128) = COPY $vgpr4_vgpr5_vgpr6_vgpr7
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<2 x s128>) = G_BUILD_VECTOR [[COPY]](s128), [[COPY1]](s128)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<2 x s128>)
|
|
%0:_(s128) = COPY $vgpr0_vgpr1_vgpr2_vgpr3
|
|
%1:_(s128) = COPY $vgpr4_vgpr5_vgpr6_vgpr7
|
|
%2:_(<2 x s128>) = G_BUILD_VECTOR %0, %1
|
|
S_NOP 0, implicit %2
|
|
...
|
|
|
|
---
|
|
name: legal_v2p3
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1
|
|
; CHECK-LABEL: name: legal_v2p3
|
|
; CHECK: [[COPY:%[0-9]+]]:_(p3) = COPY $vgpr0
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(p3) = COPY $vgpr1
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<2 x p3>) = G_BUILD_VECTOR [[COPY]](p3), [[COPY1]](p3)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<2 x p3>)
|
|
%0:_(p3) = COPY $vgpr0
|
|
%1:_(p3) = COPY $vgpr1
|
|
%2:_(<2 x p3>) = G_BUILD_VECTOR %0, %1
|
|
S_NOP 0, implicit %2
|
|
...
|
|
---
|
|
name: legal_v3p3
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0, $vgpr1, $vgpr2
|
|
; CHECK-LABEL: name: legal_v3p3
|
|
; CHECK: [[COPY:%[0-9]+]]:_(p3) = COPY $vgpr0
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(p3) = COPY $vgpr1
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(p3) = COPY $vgpr2
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<3 x p3>) = G_BUILD_VECTOR [[COPY]](p3), [[COPY1]](p3), [[COPY2]](p3)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<3 x p3>)
|
|
%0:_(p3) = COPY $vgpr0
|
|
%1:_(p3) = COPY $vgpr1
|
|
%2:_(p3) = COPY $vgpr2
|
|
%3:_(<3 x p3>) = G_BUILD_VECTOR %0, %1, %2
|
|
S_NOP 0, implicit %3
|
|
...
|
|
|
|
---
|
|
name: legal_v2p0
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0_vgpr1, $vgpr2_vgpr3
|
|
; CHECK-LABEL: name: legal_v2p0
|
|
; CHECK: [[COPY:%[0-9]+]]:_(p0) = COPY $vgpr0_vgpr1
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(p0) = COPY $vgpr2_vgpr3
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<2 x p0>) = G_BUILD_VECTOR [[COPY]](p0), [[COPY1]](p0)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<2 x p0>)
|
|
%0:_(p0) = COPY $vgpr0_vgpr1
|
|
%1:_(p0) = COPY $vgpr2_vgpr3
|
|
%2:_(<2 x p0>) = G_BUILD_VECTOR %0, %1
|
|
S_NOP 0, implicit %2
|
|
...
|
|
|
|
---
|
|
name: legal_v2p999
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0_vgpr1, $vgpr2_vgpr3
|
|
; CHECK-LABEL: name: legal_v2p999
|
|
; CHECK: [[COPY:%[0-9]+]]:_(p999) = COPY $vgpr0_vgpr1
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(p999) = COPY $vgpr2_vgpr3
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<2 x p999>) = G_BUILD_VECTOR [[COPY]](p999), [[COPY1]](p999)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<2 x p999>)
|
|
%0:_(p999) = COPY $vgpr0_vgpr1
|
|
%1:_(p999) = COPY $vgpr2_vgpr3
|
|
%2:_(<2 x p999>) = G_BUILD_VECTOR %0, %1
|
|
S_NOP 0, implicit %2
|
|
...
|
|
|
|
---
|
|
name: legal_v2s256
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7, $vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15
|
|
|
|
; CHECK-LABEL: name: legal_v2s256
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s256) = COPY $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s256) = COPY $vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<2 x s256>) = G_BUILD_VECTOR [[COPY]](s256), [[COPY1]](s256)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<2 x s256>)
|
|
%0:_(s256) = COPY $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7
|
|
%1:_(s256) = COPY $vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15
|
|
%2:_(<2 x s256>) = G_BUILD_VECTOR %0, %1
|
|
S_NOP 0, implicit %2
|
|
...
|
|
|
|
---
|
|
name: legal_v4s128
|
|
body: |
|
|
bb.0:
|
|
liveins: $vgpr0_vgpr1_vgpr2_vgpr3, $vgpr4_vgpr5_vgpr6_vgpr7, $vgpr8_vgpr9_vgpr10, $vgpr11_vgpr12_vgpr13_vgpr14_vgpr15
|
|
|
|
; CHECK-LABEL: name: legal_v4s128
|
|
; CHECK: [[COPY:%[0-9]+]]:_(s128) = COPY $vgpr0_vgpr1_vgpr2_vgpr3
|
|
; CHECK: [[COPY1:%[0-9]+]]:_(s128) = COPY $vgpr4_vgpr5_vgpr6_vgpr7
|
|
; CHECK: [[COPY2:%[0-9]+]]:_(s128) = COPY $vgpr8_vgpr9_vgpr10_vgpr11
|
|
; CHECK: [[COPY3:%[0-9]+]]:_(s128) = COPY $vgpr12_vgpr13_vgpr14_vgpr15
|
|
; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<4 x s128>) = G_BUILD_VECTOR [[COPY]](s128), [[COPY1]](s128), [[COPY2]](s128), [[COPY3]](s128)
|
|
; CHECK: S_NOP 0, implicit [[BUILD_VECTOR]](<4 x s128>)
|
|
%0:_(s128) = COPY $vgpr0_vgpr1_vgpr2_vgpr3
|
|
%1:_(s128) = COPY $vgpr4_vgpr5_vgpr6_vgpr7
|
|
%2:_(s128) = COPY $vgpr8_vgpr9_vgpr10_vgpr11
|
|
%3:_(s128)= COPY $vgpr12_vgpr13_vgpr14_vgpr15
|
|
%4:_(<4 x s128>) = G_BUILD_VECTOR %0, %1, %2, %3
|
|
S_NOP 0, implicit %4
|
|
...
|