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
11 liveins: $sgpr0_sgpr1, $sgpr2
12 ; CHECK-LABEL: name: class_ss
13 ; CHECK: liveins: $sgpr0_sgpr1, $sgpr2
15 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sgpr(s64) = COPY $sgpr0_sgpr1
16 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr2
17 ; CHECK-NEXT: [[COPY2:%[0-9]+]]:vgpr(s64) = COPY [[COPY]](s64)
18 ; CHECK-NEXT: [[COPY3:%[0-9]+]]:vgpr(s32) = COPY [[COPY1]](s32)
19 ; CHECK-NEXT: [[INT:%[0-9]+]]:vcc(s1) = G_INTRINSIC intrinsic(@llvm.amdgcn.class), [[COPY2]](s64), [[COPY3]](s32)
20 %0:_(s64) = COPY $sgpr0_sgpr1
21 %1:_(s32) = COPY $sgpr2
22 %2:_(s1) = G_INTRINSIC intrinsic(@llvm.amdgcn.class), %0, %1
31 liveins: $sgpr0_sgpr1, $vgpr0
33 ; CHECK-LABEL: name: class_sv
34 ; CHECK: liveins: $sgpr0_sgpr1, $vgpr0
36 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sgpr(s64) = COPY $sgpr0_sgpr1
37 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
38 ; CHECK-NEXT: [[COPY2:%[0-9]+]]:vgpr(s64) = COPY [[COPY]](s64)
39 ; CHECK-NEXT: [[INT:%[0-9]+]]:vcc(s1) = G_INTRINSIC intrinsic(@llvm.amdgcn.class), [[COPY2]](s64), [[COPY1]](s32)
40 %0:_(s64) = COPY $sgpr0_sgpr1
41 %1:_(s32) = COPY $vgpr0
42 %2:_(s1) = G_INTRINSIC intrinsic(@llvm.amdgcn.class), %0, %1
51 liveins: $vgpr0_vgpr1, $sgpr0
52 ; CHECK-LABEL: name: class_vs
53 ; CHECK: liveins: $vgpr0_vgpr1, $sgpr0
55 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr(s64) = COPY $vgpr0_vgpr1
56 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
57 ; CHECK-NEXT: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY [[COPY1]](s32)
58 ; CHECK-NEXT: [[INT:%[0-9]+]]:vcc(s1) = G_INTRINSIC intrinsic(@llvm.amdgcn.class), [[COPY]](s64), [[COPY2]](s32)
59 %0:_(s64) = COPY $vgpr0_vgpr1
60 %1:_(s32) = COPY $sgpr0
61 %2:_(s1) = G_INTRINSIC intrinsic(@llvm.amdgcn.class), %0, %1
70 liveins: $vgpr0, $vgpr1
71 ; CHECK-LABEL: name: class_vv
72 ; CHECK: liveins: $vgpr0, $vgpr1
74 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr(s64) = COPY $vgpr0_vgpr1
75 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr2
76 ; CHECK-NEXT: [[INT:%[0-9]+]]:vcc(s1) = G_INTRINSIC intrinsic(@llvm.amdgcn.class), [[COPY]](s64), [[COPY1]](s32)
77 %0:_(s64) = COPY $vgpr0_vgpr1
78 %1:_(s32) = COPY $vgpr2
79 %2:_(s1) = G_INTRINSIC intrinsic(@llvm.amdgcn.class), %0, %1