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 4 5--- 6name: maxnum_ss 7legalized: true 8 9body: | 10 bb.0: 11 liveins: $sgpr0, $sgpr1 12 ; CHECK-LABEL: name: maxnum_ss 13 ; CHECK: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0 14 ; CHECK: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr1 15 ; CHECK: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY [[COPY1]](s32) 16 ; CHECK: [[INT:%[0-9]+]]:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.maxnum), [[COPY]](s32), [[COPY2]](s32) 17 %0:_(s32) = COPY $sgpr0 18 %1:_(s32) = COPY $sgpr1 19 %2:_(s32) = G_INTRINSIC intrinsic(@llvm.maxnum.f32), %0, %1 20... 21--- 22name: maxnum_sv 23legalized: true 24 25body: | 26 bb.0: 27 liveins: $sgpr0, $vgpr0 28 ; CHECK-LABEL: name: maxnum_sv 29 ; CHECK: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0 30 ; CHECK: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr0 31 ; CHECK: [[INT:%[0-9]+]]:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.maxnum), [[COPY]](s32), [[COPY1]](s32) 32 %0:_(s32) = COPY $sgpr0 33 %1:_(s32) = COPY $vgpr0 34 %2:_(s32) = G_INTRINSIC intrinsic(@llvm.maxnum.f32), %0, %1 35... 36--- 37name: maxnum_vs 38legalized: true 39 40body: | 41 bb.0: 42 liveins: $sgpr0, $vgpr0 43 ; CHECK-LABEL: name: maxnum_vs 44 ; CHECK: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0 45 ; CHECK: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr0 46 ; CHECK: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY [[COPY]](s32) 47 ; CHECK: [[INT:%[0-9]+]]:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.maxnum), [[COPY1]](s32), [[COPY2]](s32) 48 %0:_(s32) = COPY $sgpr0 49 %1:_(s32) = COPY $vgpr0 50 %2:_(s32) = G_INTRINSIC intrinsic(@llvm.maxnum.f32), %1, %0 51... 52--- 53name: maxnum_vv 54legalized: true 55 56body: | 57 bb.0: 58 liveins: $vgpr0, $vgpr1 59 ; CHECK-LABEL: name: maxnum_vv 60 ; CHECK: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0 61 ; CHECK: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr1 62 ; CHECK: [[INT:%[0-9]+]]:vgpr(s32) = G_INTRINSIC intrinsic(@llvm.maxnum), [[COPY]](s32), [[COPY1]](s32) 63 %0:_(s32) = COPY $vgpr0 64 %1:_(s32) = COPY $vgpr1 65 %2:_(s32) = G_INTRINSIC intrinsic(@llvm.maxnum.f32), %0, %1 66... 67