1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -mcpu=fiji -run-pass=regbankselect -regbankselect-fast -verify-machineinstrs -o - %s | FileCheck %s
3 # RUN: llc -march=amdgcn -mcpu=fiji -run-pass=regbankselect -regbankselect-greedy -verify-machineinstrs -o - %s | FileCheck %s
6 name: build_vector_v2s32_ss
11 liveins: $sgpr0, $sgpr1
12 ; CHECK-LABEL: name: build_vector_v2s32_ss
13 ; CHECK: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
14 ; CHECK: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
15 ; CHECK: [[BUILD_VECTOR:%[0-9]+]]:sgpr(<2 x s32>) = G_BUILD_VECTOR [[COPY]](s32), [[COPY1]](s32)
16 %0:_(s32) = COPY $sgpr0
17 %1:_(s32) = COPY $sgpr1
18 %2:_(<2 x s32>) = G_BUILD_VECTOR %0, %1
22 name: build_vector_v2s32_sv
27 liveins: $sgpr0, $vgpr0
28 ; CHECK-LABEL: name: build_vector_v2s32_sv
29 ; CHECK: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
30 ; CHECK: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
31 ; CHECK: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY [[COPY]](s32)
32 ; CHECK: [[BUILD_VECTOR:%[0-9]+]]:vgpr(<2 x s32>) = G_BUILD_VECTOR [[COPY2]](s32), [[COPY1]](s32)
33 %0:_(s32) = COPY $sgpr0
34 %1:_(s32) = COPY $vgpr0
35 %2:_(<2 x s32>) = G_BUILD_VECTOR %0, %1
39 name: build_vector_v2s32_vs
44 liveins: $vgpr0, $sgpr0
45 ; CHECK-LABEL: name: build_vector_v2s32_vs
46 ; CHECK: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
47 ; CHECK: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
48 ; CHECK: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY [[COPY1]](s32)
49 ; CHECK: [[BUILD_VECTOR:%[0-9]+]]:vgpr(<2 x s32>) = G_BUILD_VECTOR [[COPY]](s32), [[COPY2]](s32)
50 %0:_(s32) = COPY $vgpr0
51 %1:_(s32) = COPY $sgpr0
52 %2:_(<2 x s32>) = G_BUILD_VECTOR %0, %1
56 name: build_vector_v2s32_vv
61 liveins: $vgpr0, $vgpr1
62 ; CHECK-LABEL: name: build_vector_v2s32_vv
63 ; CHECK: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
64 ; CHECK: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr1
65 ; CHECK: [[BUILD_VECTOR:%[0-9]+]]:vgpr(<2 x s32>) = G_BUILD_VECTOR [[COPY]](s32), [[COPY1]](s32)
66 %0:_(s32) = COPY $vgpr0
67 %1:_(s32) = COPY $vgpr1
68 %2:_(<2 x s32>) = G_BUILD_VECTOR %0, %1