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
10 liveins: $sgpr0, $sgpr1
11 ; CHECK-LABEL: name: add_s32_ss
12 ; CHECK: liveins: $sgpr0, $sgpr1
14 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
15 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
16 ; CHECK-NEXT: [[ADD:%[0-9]+]]:sgpr(s32) = G_ADD [[COPY]], [[COPY1]]
17 %0:_(s32) = COPY $sgpr0
18 %1:_(s32) = COPY $sgpr1
19 %2:_(s32) = G_ADD %0, %1
28 liveins: $sgpr0, $vgpr0
29 ; CHECK-LABEL: name: add_s32_sv
30 ; CHECK: liveins: $sgpr0, $vgpr0
32 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
33 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
34 ; CHECK-NEXT: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY [[COPY]](s32)
35 ; CHECK-NEXT: [[ADD:%[0-9]+]]:vgpr(s32) = G_ADD [[COPY2]], [[COPY1]]
36 %0:_(s32) = COPY $sgpr0
37 %1:_(s32) = COPY $vgpr0
38 %2:_(s32) = G_ADD %0, %1
47 liveins: $sgpr0, $vgpr0
48 ; CHECK-LABEL: name: add_s32_vs
49 ; CHECK: liveins: $sgpr0, $vgpr0
51 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
52 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
53 ; CHECK-NEXT: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY [[COPY1]](s32)
54 ; CHECK-NEXT: [[ADD:%[0-9]+]]:vgpr(s32) = G_ADD [[COPY]], [[COPY2]]
55 %0:_(s32) = COPY $vgpr0
56 %1:_(s32) = COPY $sgpr0
57 %2:_(s32) = G_ADD %0, %1
66 liveins: $vgpr0, $vgpr1
67 ; CHECK-LABEL: name: add_s32_vv
68 ; CHECK: liveins: $vgpr0, $vgpr1
70 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
71 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr1
72 ; CHECK-NEXT: [[ADD:%[0-9]+]]:vgpr(s32) = G_ADD [[COPY]], [[COPY1]]
73 %0:_(s32) = COPY $vgpr0
74 %1:_(s32) = COPY $vgpr1
75 %2:_(s32) = G_ADD %0, %1