brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.6 KiB · 5840f62 Raw
64 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -mtriple=amdgcn -mcpu=gfx900 -run-pass=instruction-select -verify-machineinstrs %s -o -  | FileCheck -check-prefix=GCN %s3# RUN: llc -mtriple=amdgcn -mcpu=fiji -run-pass=instruction-select -verify-machineinstrs -global-isel-abort=2 -pass-remarks-missed='gisel*'  %s -filetype=null 2>&1 | FileCheck -check-prefix=VI-ERR %s4 5# VI-ERR-NOT: remark6# VI-ERR: remark: <unknown>:0:0: cannot select: %6:vgpr(s16) = G_INTRINSIC intrinsic(@llvm.amdgcn.fmed3), %3:vgpr(s16), %4:vgpr(s16), %5:vgpr(s16) (in function: fmed3_s16_vvvv)7# VI-ERR-NEXT: remark: <unknown>:0:0: cannot select: %6:vgpr(s16) = G_INTRINSIC intrinsic(@llvm.amdgcn.fmed3), %3:sgpr(s16), %4:vgpr(s16), %5:vgpr(s16) (in function: fmed3_s16_vsvv)8# VI-ERR-NOT: remark9---10name: fmed3_s16_vvvv11legalized: true12regBankSelected: true13tracksRegLiveness: true14 15body: |16  bb.0:17    liveins: $vgpr0, $vgpr1, $vgpr218 19    ; GCN-LABEL: name: fmed3_s16_vvvv20    ; GCN: liveins: $vgpr0, $vgpr1, $vgpr221    ; GCN-NEXT: {{  $}}22    ; GCN-NEXT: [[COPY:%[0-9]+]]:vgpr_32 = COPY $vgpr023    ; GCN-NEXT: [[COPY1:%[0-9]+]]:vgpr_32 = COPY $vgpr124    ; GCN-NEXT: [[COPY2:%[0-9]+]]:vgpr_32 = COPY $vgpr225    ; GCN-NEXT: [[V_MED3_F16_e64_:%[0-9]+]]:vgpr_32 = nofpexcept V_MED3_F16_e64 0, [[COPY]], 0, [[COPY1]], 0, [[COPY2]], 0, 0, 0, implicit $mode, implicit $exec26    ; GCN-NEXT: S_ENDPGM 0, implicit [[V_MED3_F16_e64_]]27    %0:vgpr(s32) = COPY $vgpr028    %1:vgpr(s32) = COPY $vgpr129    %2:vgpr(s32) = COPY $vgpr230    %3:vgpr(s16) = G_TRUNC %031    %4:vgpr(s16) = G_TRUNC %132    %5:vgpr(s16) = G_TRUNC %233    %6:vgpr(s16) = G_INTRINSIC intrinsic(@llvm.amdgcn.fmed3), %3, %4, %534    S_ENDPGM 0, implicit %635...36 37---38name: fmed3_s16_vsvv39legalized: true40regBankSelected: true41tracksRegLiveness: true42 43body: |44  bb.0:45    liveins: $sgpr0, $vgpr0, $vgpr146 47    ; GCN-LABEL: name: fmed3_s16_vsvv48    ; GCN: liveins: $sgpr0, $vgpr0, $vgpr149    ; GCN-NEXT: {{  $}}50    ; GCN-NEXT: [[COPY:%[0-9]+]]:sreg_32 = COPY $sgpr051    ; GCN-NEXT: [[COPY1:%[0-9]+]]:vgpr_32 = COPY $vgpr052    ; GCN-NEXT: [[COPY2:%[0-9]+]]:vgpr_32 = COPY $vgpr153    ; GCN-NEXT: [[V_MED3_F16_e64_:%[0-9]+]]:vgpr_32 = nofpexcept V_MED3_F16_e64 0, [[COPY]], 0, [[COPY1]], 0, [[COPY2]], 0, 0, 0, implicit $mode, implicit $exec54    ; GCN-NEXT: S_ENDPGM 0, implicit [[V_MED3_F16_e64_]]55    %0:sgpr(s32) = COPY $sgpr056    %1:vgpr(s32) = COPY $vgpr057    %2:vgpr(s32) = COPY $vgpr158    %3:sgpr(s16) = G_TRUNC %059    %4:vgpr(s16) = G_TRUNC %160    %5:vgpr(s16) = G_TRUNC %261    %6:vgpr(s16) = G_INTRINSIC intrinsic(@llvm.amdgcn.fmed3), %3, %4, %562    S_ENDPGM 0, implicit %663...64