1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py 2# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -run-pass=machine-scheduler -verify-machineinstrs %s -o - | FileCheck %s 3--- | 4 5 declare void @llvm.dbg.value(metadata, metadata, metadata) #0 6 7 define amdgpu_kernel void @could_not_use_debug_inst_to_query_mi2mimap() #1 { 8 ret void 9 } 10 11 declare hidden float @foo(float, float, float) local_unnamed_addr #1 12 13 attributes #0 = { nounwind readnone speculatable } 14 attributes #1 = {nounwind } 15 16... 17--- 18name: could_not_use_debug_inst_to_query_mi2mimap 19tracksRegLiveness: true 20frameInfo: 21 hasCalls: true 22body: | 23 ; CHECK-LABEL: name: could_not_use_debug_inst_to_query_mi2mimap 24 ; CHECK: bb.0: 25 ; CHECK: successors: %bb.1(0x80000000) 26 ; CHECK: [[DEF:%[0-9]+]]:vreg_64 = IMPLICIT_DEF 27 ; CHECK: [[DEF1:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF 28 ; CHECK: [[DEF2:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF 29 ; CHECK: [[DEF3:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF 30 ; CHECK: [[DEF4:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF 31 ; CHECK: [[DEF5:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF 32 ; CHECK: [[DEF6:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF 33 ; CHECK: [[DEF7:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF 34 ; CHECK: [[DEF8:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF 35 ; CHECK: %9:vgpr_32 = nofpexcept V_MUL_F32_e32 1082130432, [[DEF1]], implicit $mode, implicit $exec 36 ; CHECK: [[DEF9:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF 37 ; CHECK: [[DEF10:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF 38 ; CHECK: bb.1: 39 ; CHECK: successors: %bb.2(0x80000000) 40 ; CHECK: DBG_VALUE 41 ; CHECK: DBG_VALUE 42 ; CHECK: DBG_VALUE 43 ; CHECK: bb.2: 44 ; CHECK: successors: %bb.3(0x80000000) 45 ; CHECK: S_BRANCH %bb.3 46 ; CHECK: bb.3: 47 ; CHECK: [[V_MOV_B32_e32_:%[0-9]+]]:vgpr_32 = V_MOV_B32_e32 0, implicit $exec 48 ; CHECK: [[DEF11:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF 49 ; CHECK: [[DEF12:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF 50 ; CHECK: [[COPY:%[0-9]+]]:vgpr_32 = COPY [[V_MOV_B32_e32_]] 51 ; CHECK: %16:vgpr_32 = nofpexcept V_MUL_F32_e32 [[DEF7]], [[DEF7]], implicit $mode, implicit $exec 52 ; CHECK: %17:vgpr_32 = nofpexcept V_MUL_F32_e32 [[DEF7]], [[DEF7]], implicit $mode, implicit $exec 53 ; CHECK: %18:vgpr_32 = nofpexcept V_MUL_F32_e32 [[V_MOV_B32_e32_]], [[V_MOV_B32_e32_]], implicit $mode, implicit $exec 54 ; CHECK: [[V_MOV_B32_e32_1:%[0-9]+]]:vgpr_32 = V_MOV_B32_e32 1092616192, implicit $exec 55 ; CHECK: [[DEF13:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF 56 ; CHECK: %21:vgpr_32 = nofpexcept V_ADD_F32_e32 [[V_MOV_B32_e32_]], [[V_MOV_B32_e32_]], implicit $mode, implicit $exec 57 ; CHECK: %22:vgpr_32 = nofpexcept V_MUL_F32_e32 [[DEF7]], [[DEF7]], implicit $mode, implicit $exec 58 ; CHECK: dead %23:vgpr_32 = nofpexcept V_MUL_F32_e32 %22, [[DEF13]], implicit $mode, implicit $exec 59 ; CHECK: dead [[V_MOV_B32_e32_1]]:vgpr_32 = nofpexcept V_MAC_F32_e32 %21, [[COPY]], [[V_MOV_B32_e32_1]], implicit $mode, implicit $exec 60 ; CHECK: [[DEF14:%[0-9]+]]:sreg_64 = IMPLICIT_DEF 61 ; CHECK: $sgpr4 = IMPLICIT_DEF 62 ; CHECK: $vgpr0 = COPY [[DEF11]] 63 ; CHECK: $vgpr0 = COPY [[V_MOV_B32_e32_]] 64 ; CHECK: $vgpr1 = COPY [[DEF7]] 65 ; CHECK: $vgpr0 = COPY %16 66 ; CHECK: $vgpr1 = COPY %17 67 ; CHECK: $vgpr2 = COPY %18 68 ; CHECK: dead $sgpr30_sgpr31 = SI_CALL [[DEF14]], @foo, csr_amdgpu_highregs, implicit undef $sgpr0_sgpr1_sgpr2_sgpr3, implicit killed $sgpr4, implicit $vgpr0, implicit $vgpr1, implicit $vgpr2, implicit-def $vgpr0 69 ; CHECK: %25:vgpr_32 = nofpexcept V_ADD_F32_e32 %9, [[DEF8]], implicit $mode, implicit $exec 70 ; CHECK: %25:vgpr_32 = nofpexcept V_MAC_F32_e32 [[DEF12]], [[DEF9]], %25, implicit $mode, implicit $exec 71 ; CHECK: dead %26:vgpr_32 = nofpexcept V_MAD_F32 0, %25, 0, [[DEF4]], 0, [[DEF1]], 0, 0, implicit $mode, implicit $exec 72 ; CHECK: dead %27:vgpr_32 = nofpexcept V_MAD_F32 0, %25, 0, [[DEF5]], 0, [[DEF2]], 0, 0, implicit $mode, implicit $exec 73 ; CHECK: dead %28:vgpr_32 = nofpexcept V_MAD_F32 0, %25, 0, [[DEF6]], 0, [[DEF3]], 0, 0, implicit $mode, implicit $exec 74 ; CHECK: GLOBAL_STORE_DWORD [[DEF]], [[DEF10]], 0, 0, 0, 0, implicit $exec 75 ; CHECK: S_ENDPGM 0 76 bb.0: 77 successors: %bb.1 78 79 %0:vreg_64 = IMPLICIT_DEF 80 %1:vgpr_32 = IMPLICIT_DEF 81 %2:vgpr_32 = IMPLICIT_DEF 82 %3:vgpr_32 = IMPLICIT_DEF 83 %4:vgpr_32 = IMPLICIT_DEF 84 %5:vgpr_32 = IMPLICIT_DEF 85 %6:vgpr_32 = IMPLICIT_DEF 86 %7:vgpr_32 = IMPLICIT_DEF 87 %8:vgpr_32 = IMPLICIT_DEF 88 %9:vgpr_32 = nofpexcept V_MUL_F32_e32 1082130432, %1, implicit $mode, implicit $exec 89 %10:vgpr_32 = IMPLICIT_DEF 90 %11:vgpr_32 = IMPLICIT_DEF 91 92 bb.1: 93 successors: %bb.2 94 95 DBG_VALUE 96 DBG_VALUE 97 DBG_VALUE 98 99 bb.2: 100 successors: %bb.3 101 102 S_BRANCH %bb.3 103 104 bb.3: 105 %12:vgpr_32 = V_MOV_B32_e32 0, implicit $exec 106 %13:vgpr_32 = COPY %12 107 %14:vgpr_32 = IMPLICIT_DEF 108 %15:vgpr_32 = IMPLICIT_DEF 109 %16:vgpr_32 = nofpexcept V_MUL_F32_e32 %7, %7, implicit $mode, implicit $exec 110 %17:vgpr_32 = nofpexcept V_MUL_F32_e32 %7, %7, implicit $mode, implicit $exec 111 %18:vgpr_32 = nofpexcept V_MUL_F32_e32 %12, %12, implicit $mode, implicit $exec 112 %19:vgpr_32 = V_MOV_B32_e32 1092616192, implicit $exec 113 %20:vgpr_32 = IMPLICIT_DEF 114 %21:vgpr_32 = nofpexcept V_ADD_F32_e32 %12, %12, implicit $mode, implicit $exec 115 %22:vgpr_32 = nofpexcept V_MUL_F32_e32 %7, %7, implicit $mode, implicit $exec 116 %23:vgpr_32 = nofpexcept V_MUL_F32_e32 %22, %20, implicit $mode, implicit $exec 117 %19:vgpr_32 = nofpexcept V_MAC_F32_e32 %21, %13, %19, implicit $mode, implicit $exec 118 %24:sreg_64 = IMPLICIT_DEF 119 $vgpr0 = COPY %14 120 $vgpr0 = COPY %12 121 $vgpr1 = COPY %7 122 $vgpr0 = COPY %16 123 $vgpr1 = COPY %17 124 $vgpr2 = COPY %18 125 $sgpr4 = IMPLICIT_DEF 126 dead $sgpr30_sgpr31 = SI_CALL %24, @foo, csr_amdgpu_highregs, implicit undef $sgpr0_sgpr1_sgpr2_sgpr3, implicit killed $sgpr4, implicit killed $vgpr0, implicit killed $vgpr1, implicit killed $vgpr2, implicit-def $vgpr0 127 %25:vgpr_32 = nofpexcept V_ADD_F32_e32 %9, %8, implicit $mode, implicit $exec 128 %25:vgpr_32 = nofpexcept V_MAC_F32_e32 %15, %10, %25, implicit $mode, implicit $exec 129 %26:vgpr_32 = nofpexcept V_MAD_F32 0, %25, 0, %4, 0, %1, 0, 0, implicit $mode, implicit $exec 130 %27:vgpr_32 = nofpexcept V_MAD_F32 0, %25, 0, %5, 0, %2, 0, 0, implicit $mode, implicit $exec 131 %28:vgpr_32 = nofpexcept V_MAD_F32 0, %25, 0, %6, 0, %3, 0, 0, implicit $mode, implicit $exec 132 GLOBAL_STORE_DWORD %0, %11, 0, 0, 0, 0, implicit $exec 133 S_ENDPGM 0 134 135... 136