1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -mcpu=gfx900 -run-pass=instruction-select -global-isel-abort=2 -pass-remarks-missed='gisel*' -verify-machineinstrs %s -o - 2>%t | FileCheck -check-prefix=GCN %s
3 # RUN: FileCheck -check-prefix=ERR %s < %t
6 # ERR: remark: <unknown>:0:0: cannot select: %2:sgpr(s32) = G_UMIN %0:sgpr, %1:sgpr (in function: umin_s32_ss)
16 liveins: $sgpr0, $sgpr1
17 ; GCN-LABEL: name: umin_s32_ss
18 ; GCN: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
19 ; GCN: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr1
20 ; GCN: [[UMIN:%[0-9]+]]:sgpr(s32) = G_UMIN [[COPY]], [[COPY1]]
21 ; GCN: S_ENDPGM 0, implicit [[UMIN]](s32)
22 %0:sgpr(s32) = COPY $sgpr0
23 %1:sgpr(s32) = COPY $sgpr1
24 %2:sgpr(s32) = G_UMIN %0, %1
25 S_ENDPGM 0, implicit %2
35 liveins: $sgpr0, $vgpr0
36 ; GCN-LABEL: name: umin_s32_sv
37 ; GCN: [[COPY:%[0-9]+]]:sreg_32_xm0 = COPY $sgpr0
38 ; GCN: [[COPY1:%[0-9]+]]:vgpr_32 = COPY $vgpr0
39 ; GCN: [[V_MIN_U32_e64_:%[0-9]+]]:vgpr_32 = V_MIN_U32_e64 [[COPY]], [[COPY1]], implicit $exec
40 ; GCN: S_ENDPGM 0, implicit [[V_MIN_U32_e64_]]
41 %0:sgpr(s32) = COPY $sgpr0
42 %1:vgpr(s32) = COPY $vgpr0
43 %2:vgpr(s32) = G_UMIN %0, %1
44 S_ENDPGM 0, implicit %2
54 liveins: $sgpr0, $vgpr0
55 ; GCN-LABEL: name: umin_s32_vs
56 ; GCN: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr0
57 ; GCN: [[COPY1:%[0-9]+]]:sreg_32_xm0 = COPY $sgpr0
58 ; GCN: [[V_MIN_U32_e64_:%[0-9]+]]:vgpr_32 = V_MIN_U32_e64 [[COPY]], [[COPY1]], implicit $exec
59 ; GCN: S_ENDPGM 0, implicit [[V_MIN_U32_e64_]]
60 %0:vgpr(s32) = COPY $vgpr0
61 %1:sgpr(s32) = COPY $sgpr0
62 %2:vgpr(s32) = G_UMIN %0, %1
63 S_ENDPGM 0, implicit %2
73 liveins: $vgpr0, $vgpr1
74 ; GCN-LABEL: name: umin_s32_vv
75 ; GCN: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr0
76 ; GCN: [[COPY1:%[0-9]+]]:vgpr_32 = COPY $vgpr1
77 ; GCN: [[V_MIN_U32_e64_:%[0-9]+]]:vgpr_32 = V_MIN_U32_e64 [[COPY]], [[COPY1]], implicit $exec
78 ; GCN: S_ENDPGM 0, implicit [[V_MIN_U32_e64_]]
79 %0:vgpr(s32) = COPY $vgpr0
80 %1:vgpr(s32) = COPY $vgpr1
81 %2:vgpr(s32) = G_UMIN %0, %1
82 S_ENDPGM 0, implicit %2