1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -mcpu=fiji -run-pass=regbankselect %s -verify-machineinstrs -o - -regbankselect-fast | FileCheck %s
3 # RUN: llc -march=amdgcn -mcpu=fiji -run-pass=regbankselect %s -verify-machineinstrs -o - -regbankselect-greedy | FileCheck %s
11 liveins: $sgpr0, $sgpr1
12 ; CHECK-LABEL: name: lshr_ss
13 ; CHECK: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
14 ; CHECK: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
15 ; CHECK: [[LSHR:%[0-9]+]]:sgpr(s32) = G_LSHR [[COPY]], [[COPY1]]
16 %0:_(s32) = COPY $sgpr0
17 %1:_(s32) = COPY $sgpr1
18 %2:_(s32) = G_LSHR %0, %1
26 liveins: $sgpr0, $vgpr0
27 ; CHECK-LABEL: name: lshr_sv
28 ; CHECK: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
29 ; CHECK: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
30 ; CHECK: [[LSHR:%[0-9]+]]:vgpr(s32) = G_LSHR [[COPY]], [[COPY1]]
31 %0:_(s32) = COPY $sgpr0
32 %1:_(s32) = COPY $vgpr0
33 %2:_(s32) = G_LSHR %0, %1
41 liveins: $sgpr0, $vgpr0
42 ; CHECK-LABEL: name: lshr_vs
43 ; CHECK: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
44 ; CHECK: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
45 ; CHECK: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY [[COPY1]](s32)
46 ; CHECK: [[LSHR:%[0-9]+]]:vgpr(s32) = G_LSHR [[COPY]], [[COPY2]]
47 %0:_(s32) = COPY $vgpr0
48 %1:_(s32) = COPY $sgpr0
49 %2:_(s32) = G_LSHR %0, %1
57 liveins: $vgpr0, $vgpr1
58 ; CHECK-LABEL: name: lshr_vv
59 ; CHECK: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
60 ; CHECK: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr1
61 ; CHECK: [[LSHR:%[0-9]+]]:vgpr(s32) = G_LSHR [[COPY]], [[COPY1]]
62 %0:_(s32) = COPY $vgpr0
63 %1:_(s32) = COPY $vgpr1
64 %2:_(s32) = G_LSHR %0, %1