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: usubo_s32_ss
13 ; CHECK: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
14 ; CHECK: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
15 ; CHECK: [[USUBO:%[0-9]+]]:sgpr(s32), [[USUBO1:%[0-9]+]]:sgpr(s32) = G_USUBO [[COPY]], [[COPY1]]
16 ; CHECK: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[USUBO1]](s32)
17 %0:_(s32) = COPY $sgpr0
18 %1:_(s32) = COPY $sgpr1
19 %2:_(s32), %3:_(s1) = G_USUBO %0, %1
28 liveins: $sgpr0, $vgpr0
29 ; CHECK-LABEL: name: usubo_s32_sv
30 ; CHECK: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
31 ; CHECK: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
32 ; CHECK: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY [[COPY]](s32)
33 ; CHECK: [[USUBO:%[0-9]+]]:vgpr(s32), [[USUBO1:%[0-9]+]]:vcc(s1) = G_USUBO [[COPY2]], [[COPY1]]
34 %0:_(s32) = COPY $sgpr0
35 %1:_(s32) = COPY $vgpr0
36 %2:_(s32), %3:_(s1) = G_USUBO %0, %1
45 liveins: $sgpr0, $vgpr0
46 ; CHECK-LABEL: name: usubo_s32_vs
47 ; CHECK: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
48 ; CHECK: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
49 ; CHECK: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY [[COPY1]](s32)
50 ; CHECK: [[USUBO:%[0-9]+]]:vgpr(s32), [[USUBO1:%[0-9]+]]:vcc(s1) = G_USUBO [[COPY]], [[COPY2]]
51 %0:_(s32) = COPY $vgpr0
52 %1:_(s32) = COPY $sgpr0
53 %2:_(s32), %3:_(s1) = G_USUBO %0, %1
62 liveins: $vgpr0, $vgpr1
63 ; CHECK-LABEL: name: usubo_s32_vv
64 ; CHECK: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
65 ; CHECK: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr1
66 ; CHECK: [[USUBO:%[0-9]+]]:vgpr(s32), [[USUBO1:%[0-9]+]]:vcc(s1) = G_USUBO [[COPY]], [[COPY1]]
67 %0:_(s32) = COPY $vgpr0
68 %1:_(s32) = COPY $vgpr1
69 %2:_(s32), %3:_(s1) = G_USUBO %0, %1