Changeset 4815 in CLRX


Ignore:
Timestamp:
Jul 19, 2019, 9:05:11 PM (5 months ago)
Author:
matszpk
Message:

CLRadeonExtender: GCNAsm: Print error if no VOP3 encoding for VOP2 instruction and if VOP3 needed.

Location:
CLRadeonExtender/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/amdasm/GCNAsmEncode1.cpp

    r4812 r4815  
    15441544        return false;
    15451545   
     1546    if (vop3 && gcnInsn.code2==UINT16_MAX)
     1547        ASM_FAIL_BY_ERROR(instrPlace, "No VOP3 encoding for this instruction")
     1548   
    15461549    // set target expressions if needed
    15471550    if (src0OpExpr!=nullptr)
  • CLRadeonExtender/trunk/tests/amdasm/GCNAsmOpc15.cpp

    r4814 r4815  
    13201320    { "    v_ldexp_f16  v55, s27, v90 vop3", 0xd53b0037U, 0x0002b41bU, true, true, "" },
    13211321    { "    v_pk_fmac_f16  v154, v21, v107", 0x7934d715U, 0, false, true, "" },
    1322     //{ "    v_pk_fmac_f16  v55, s27, v90 vop3", 0xd53b0037U, 0x0002b41bU, true, true, "" },
     1322    { "    v_pk_fmac_f16  v55, s27, v90 vop3", 0, 0, false, false,
     1323        "test.s:1:5: Error: No VOP3 encoding for this instruction\n" },
    13231324    { nullptr, 0, 0, false, false, 0 }
    13241325};
Note: See TracChangeset for help on using the changeset viewer.