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 %s -o - | FileCheck %s
7 tracksRegLiveness: true
10 liveins: $sgpr0, $sgpr1
12 ; CHECK-LABEL: name: update_dpp_ss
13 ; CHECK: liveins: $sgpr0, $sgpr1
14 ; CHECK: [[COPY:%[0-9]+]]:sgpr(p3) = COPY $sgpr0
15 ; CHECK: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
16 ; CHECK: [[COPY2:%[0-9]+]]:vgpr(p3) = COPY [[COPY]](p3)
17 ; CHECK: [[COPY3:%[0-9]+]]:vgpr(s32) = COPY [[COPY1]](s32)
18 ; CHECK: [[INT:%[0-9]+]]:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.update.dpp), [[COPY2]](p3), [[COPY3]](s32), 0, 0, 0, 0
19 %0:_(p3) = COPY $sgpr0
20 %1:_(s32) = COPY $sgpr1
21 %2:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.update.dpp), %0, %1, 0, 0, 0, 0
28 tracksRegLiveness: true
31 liveins: $sgpr0, $vgpr0
33 ; CHECK-LABEL: name: update_dpp_sv
34 ; CHECK: liveins: $sgpr0, $vgpr0
35 ; CHECK: [[COPY:%[0-9]+]]:sgpr(p3) = COPY $sgpr0
36 ; CHECK: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
37 ; CHECK: [[COPY2:%[0-9]+]]:vgpr(p3) = COPY [[COPY]](p3)
38 ; CHECK: [[INT:%[0-9]+]]:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.update.dpp), [[COPY2]](p3), [[COPY1]](s32), 0, 0, 0, 0
39 %0:_(p3) = COPY $sgpr0
40 %1:_(s32) = COPY $vgpr0
41 %2:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.update.dpp), %0, %1, 0, 0, 0, 0
48 tracksRegLiveness: true
51 liveins: $vgpr0, $sgpr0
53 ; CHECK-LABEL: name: update_dpp_vs
54 ; CHECK: liveins: $vgpr0, $sgpr0
55 ; CHECK: [[COPY:%[0-9]+]]:vgpr(p3) = COPY $vgpr0
56 ; CHECK: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
57 ; CHECK: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY [[COPY1]](s32)
58 ; CHECK: [[INT:%[0-9]+]]:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.update.dpp), [[COPY]](p3), [[COPY2]](s32), 0, 0, 0, 0
59 %0:_(p3) = COPY $vgpr0
60 %1:_(s32) = COPY $sgpr0
61 %2:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.update.dpp), %0, %1, 0, 0, 0, 0
68 tracksRegLiveness: true
71 liveins: $vgpr0, $vgpr1
73 ; CHECK-LABEL: name: update_dpp_vv
74 ; CHECK: liveins: $vgpr0, $vgpr1
75 ; CHECK: [[COPY:%[0-9]+]]:vgpr(p3) = COPY $vgpr0
76 ; CHECK: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr1
77 ; CHECK: [[INT:%[0-9]+]]:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.update.dpp), [[COPY]](p3), [[COPY1]](s32), 0, 0, 0, 0
78 %0:_(p3) = COPY $vgpr0
79 %1:_(s32) = COPY $vgpr1
80 %2:_(s32) = G_INTRINSIC intrinsic(@llvm.amdgcn.update.dpp), %0, %1, 0, 0, 0, 0