1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py 2# RUN: llc -march=amdgcn -mcpu=fiji -run-pass=instruction-select -verify-machineinstrs -o - %s | FileCheck %s 3# RUN: llc -march=amdgcn -mcpu=gfx900 -run-pass=instruction-select -verify-machineinstrs -o - %s | FileCheck %s 4 5--- 6name: fminnum_ieee_f16_vv 7legalized: true 8regBankSelected: true 9 10body: | 11 bb.0: 12 liveins: $vgpr0, $vgpr1 13 14 ; CHECK-LABEL: name: fminnum_ieee_f16_vv 15 ; CHECK: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr0 16 ; CHECK: [[COPY1:%[0-9]+]]:vgpr_32 = COPY $vgpr1 17 ; CHECK: %4:vgpr_32 = nofpexcept V_MIN_F16_e64 0, [[COPY]], 0, [[COPY1]], 0, 0, implicit $mode, implicit $exec 18 ; CHECK: S_ENDPGM 0, implicit %4 19 %0:vgpr(s32) = COPY $vgpr0 20 %1:vgpr(s32) = COPY $vgpr1 21 %2:vgpr(s16) = G_TRUNC %0 22 %3:vgpr(s16) = G_TRUNC %1 23 %4:vgpr(s16) = G_FMINNUM_IEEE %2, %3 24 S_ENDPGM 0, implicit %4 25... 26 27--- 28name: fminnum_ieee_f16_v_fneg_v 29legalized: true 30regBankSelected: true 31 32body: | 33 bb.0: 34 liveins: $vgpr0, $vgpr1 35 36 ; CHECK-LABEL: name: fminnum_ieee_f16_v_fneg_v 37 ; CHECK: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr0 38 ; CHECK: [[COPY1:%[0-9]+]]:vgpr_32 = COPY $vgpr1 39 ; CHECK: %5:vgpr_32 = nofpexcept V_MIN_F16_e64 0, [[COPY]], 1, [[COPY1]], 0, 0, implicit $mode, implicit $exec 40 ; CHECK: S_ENDPGM 0, implicit %5 41 %0:vgpr(s32) = COPY $vgpr0 42 %1:vgpr(s32) = COPY $vgpr1 43 %2:vgpr(s16) = G_TRUNC %0 44 %3:vgpr(s16) = G_TRUNC %1 45 %4:vgpr(s16) = G_FNEG %3 46 %5:vgpr(s16) = G_FMINNUM_IEEE %2, %4 47 S_ENDPGM 0, implicit %5 48... 49