1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=amdgcn -mcpu=gfx908 -run-pass=amdgpu-regbankselect -global-isel %s -verify-machineinstrs -o - -regbankselect-fast | FileCheck %s
5 name: test_unmerge_s64_s32_s
11 ; CHECK-LABEL: name: test_unmerge_s64_s32_s
12 ; CHECK: liveins: $sgpr0_sgpr1
14 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sgpr(s64) = COPY $sgpr0_sgpr1
15 ; CHECK-NEXT: [[UV:%[0-9]+]]:sgpr(s32), [[UV1:%[0-9]+]]:sgpr(s32) = G_UNMERGE_VALUES [[COPY]](s64)
16 ; CHECK-NEXT: $vgpr0 = COPY [[UV]](s32)
17 ; CHECK-NEXT: $vgpr2 = COPY [[UV]](s32)
18 %0:_(s64) = COPY $sgpr0_sgpr1
19 %1:_(s32), %2:_(s32) = G_UNMERGE_VALUES %0:_(s64)
25 name: test_unmerge_s64_s32_v
31 ; CHECK-LABEL: name: test_unmerge_s64_s32_v
32 ; CHECK: liveins: $vgpr0_vgpr1
34 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr(s64) = COPY $vgpr0_vgpr1
35 ; CHECK-NEXT: [[UV:%[0-9]+]]:vgpr(s32), [[UV1:%[0-9]+]]:vgpr(s32) = G_UNMERGE_VALUES [[COPY]](s64)
36 ; CHECK-NEXT: $vgpr0 = COPY [[UV]](s32)
37 ; CHECK-NEXT: $vgpr2 = COPY [[UV]](s32)
38 %0:_(s64) = COPY $vgpr0_vgpr1
39 %1:_(s32), %2:_(s32) = G_UNMERGE_VALUES %0:_(s64)
45 name: test_unmerge_s32_s64_a
51 ; CHECK-LABEL: name: test_unmerge_s32_s64_a
52 ; CHECK: liveins: $agpr0_agpr1
54 ; CHECK-NEXT: [[COPY:%[0-9]+]]:agpr(s64) = COPY $agpr0_agpr1
55 ; CHECK-NEXT: [[UV:%[0-9]+]]:agpr(s32), [[UV1:%[0-9]+]]:agpr(s32) = G_UNMERGE_VALUES [[COPY]](s64)
56 ; CHECK-NEXT: $agpr0 = COPY [[UV]](s32)
57 ; CHECK-NEXT: $agpr2 = COPY [[UV1]](s32)
58 %0:_(s64) = COPY $agpr0_agpr1
59 %1:_(s32), %2:_(s32) = G_UNMERGE_VALUES %0:_(s64)