1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=amdgcn -mcpu=fiji -run-pass=amdgpu-regbankselect %s -verify-machineinstrs -o - -regbankselect-fast | FileCheck %s
3 # RUN: llc -mtriple=amdgcn -mcpu=fiji -run-pass=amdgpu-regbankselect %s -verify-machineinstrs -o - -regbankselect-greedy | FileCheck %s
6 name: reg_sequence_ss_vreg
8 tracksRegLiveness: true
12 liveins: $sgpr0, $sgpr1
14 ; CHECK-LABEL: name: reg_sequence_ss_vreg
15 ; CHECK: liveins: $sgpr0, $sgpr1
17 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
18 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
19 ; CHECK-NEXT: [[REG_SEQUENCE:%[0-9]+]]:sgpr(s64) = REG_SEQUENCE [[COPY]](s32), %subreg.sub0, [[COPY1]](s32), %subreg.sub1
20 %0:_(s32) = COPY $sgpr0
21 %1:_(s32) = COPY $sgpr1
22 %2:_(s64) = REG_SEQUENCE %0, %subreg.sub0, %1, %subreg.sub1
26 name: reg_sequence_ss_physreg
28 tracksRegLiveness: true
32 liveins: $sgpr0, $sgpr1
34 ; CHECK-LABEL: name: reg_sequence_ss_physreg
35 ; CHECK: liveins: $sgpr0, $sgpr1
37 ; CHECK-NEXT: [[REG_SEQUENCE:%[0-9]+]]:sgpr(s64) = REG_SEQUENCE $sgpr0, %subreg.sub0, $sgpr1, %subreg.sub1
38 %0:_(s64) = REG_SEQUENCE $sgpr0, %subreg.sub0, $sgpr1, %subreg.sub1
42 name: reg_sequence_sv_vreg
44 tracksRegLiveness: true
48 liveins: $sgpr0, $vgpr0
50 ; CHECK-LABEL: name: reg_sequence_sv_vreg
51 ; CHECK: liveins: $sgpr0, $vgpr0
53 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
54 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
55 ; CHECK-NEXT: [[REG_SEQUENCE:%[0-9]+]]:vgpr(s64) = REG_SEQUENCE [[COPY]](s32), %subreg.sub0, [[COPY1]](s32), %subreg.sub1
56 %0:_(s32) = COPY $sgpr0
57 %1:_(s32) = COPY $vgpr0
58 %2:_(s64) = REG_SEQUENCE %0, %subreg.sub0, %1, %subreg.sub1
62 name: reg_sequence_sv_physreg
64 tracksRegLiveness: true
68 liveins: $sgpr0, $vgpr0
70 ; CHECK-LABEL: name: reg_sequence_sv_physreg
71 ; CHECK: liveins: $sgpr0, $vgpr0
73 ; CHECK-NEXT: [[REG_SEQUENCE:%[0-9]+]]:vgpr(s64) = REG_SEQUENCE $sgpr0, %subreg.sub0, $vgpr0, %subreg.sub1
74 %0:_(s64) = REG_SEQUENCE $sgpr0, %subreg.sub0, $vgpr0, %subreg.sub1
78 name: reg_sequence_vs_vreg
80 tracksRegLiveness: true
84 liveins: $vgpr0, $sgpr0
86 ; CHECK-LABEL: name: reg_sequence_vs_vreg
87 ; CHECK: liveins: $vgpr0, $sgpr0
89 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
90 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
91 ; CHECK-NEXT: [[REG_SEQUENCE:%[0-9]+]]:vgpr(s64) = REG_SEQUENCE [[COPY]](s32), %subreg.sub0, [[COPY1]](s32), %subreg.sub1
92 %0:_(s32) = COPY $vgpr0
93 %1:_(s32) = COPY $sgpr0
94 %2:_(s64) = REG_SEQUENCE %0, %subreg.sub0, %1, %subreg.sub1
98 name: reg_sequence_vs_physreg
100 tracksRegLiveness: true
104 liveins: $vgpr0, $sgpr0
106 ; CHECK-LABEL: name: reg_sequence_vs_physreg
107 ; CHECK: liveins: $vgpr0, $sgpr0
109 ; CHECK-NEXT: [[REG_SEQUENCE:%[0-9]+]]:vgpr(s64) = REG_SEQUENCE $vgpr0, %subreg.sub0, $sgpr0, %subreg.sub1
110 %0:_(s64) = REG_SEQUENCE $vgpr0, %subreg.sub0, $sgpr0, %subreg.sub1
114 name: reg_sequence_vv_vreg
116 tracksRegLiveness: true
120 liveins: $vgpr0, $vgpr1
122 ; CHECK-LABEL: name: reg_sequence_vv_vreg
123 ; CHECK: liveins: $vgpr0, $vgpr1
125 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
126 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr1
127 ; CHECK-NEXT: [[REG_SEQUENCE:%[0-9]+]]:vgpr(s64) = REG_SEQUENCE [[COPY]](s32), %subreg.sub0, [[COPY1]](s32), %subreg.sub1
128 %0:_(s32) = COPY $vgpr0
129 %1:_(s32) = COPY $vgpr1
130 %2:_(s64) = REG_SEQUENCE %0, %subreg.sub0, %1, %subreg.sub1
134 name: reg_sequence_vv_physreg
136 tracksRegLiveness: true
140 liveins: $vgpr0, $vgpr1
142 ; CHECK-LABEL: name: reg_sequence_vv_physreg
143 ; CHECK: liveins: $vgpr0, $vgpr1
145 ; CHECK-NEXT: [[REG_SEQUENCE:%[0-9]+]]:vgpr(s64) = REG_SEQUENCE $vgpr0, %subreg.sub0, $vgpr1, %subreg.sub1
146 %0:_(s64) = REG_SEQUENCE $vgpr0, %subreg.sub0, $vgpr1, %subreg.sub1