Changeset 4873 in CLRX


Ignore:
Timestamp:
Jul 28, 2019, 9:30:42 PM (3 weeks ago)
Author:
matszpk
Message:

CLRadeonExtender: GCNAsm: Add testcases for GFX1011 specific instructions.

Location:
CLRadeonExtender/trunk/tests/amdasm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/tests/amdasm/GCNAsmOpc.h

    r4835 r4873  
    4949extern const GCNAsmOpcodeCase encGCN15OpcodeCases[];
    5050extern const GCNAsmOpcodeCase2 encGCN15OpcodeCases2[];
     51extern const GCNAsmOpcodeCase encGCN151OpcodeCases[];
    5152
    5253#endif
  • CLRadeonExtender/trunk/tests/amdasm/GCNAsmOpc15.cpp

    r4872 r4873  
    40614061    { nullptr, { }, 0, false, 0 }
    40624062};
     4063
     4064const GCNAsmOpcodeCase encGCN151OpcodeCases[] =
     4065{
     4066    { "v_dot2c_f32_f16 v154, v21, v107\n", 0x0534d715U, 0, false, true, "" },
     4067    { "v_dot4c_i32_i8  v154, v21, v107\n", 0x1b34d715U, 0, false, true, "" },
     4068    { "v_dot2c_f32_f16 v154, v21, v107 vop3\n", 0, 0, false, false,
     4069        "test.s:1:1: Error: No VOP3 encoding for this instruction\n" },
     4070    { "v_dot4c_i32_i8  v154, v21, v107 vop3\n", 0, 0, false, false,
     4071        "test.s:1:1: Error: No VOP3 encoding for this instruction\n" },
     4072    { "v_dot2_f32_f16  v55, v79, v166, v229\n", 0xcc134037U, 0x1f974d4fU, true, true, "" },
     4073    { "v_dot2_i32_i16  v55, v79, v166, v229\n", 0xcc144037U, 0x1f974d4fU, true, true, "" },
     4074    { "v_dot2_u32_u16  v55, v79, v166, v229\n", 0xcc154037U, 0x1f974d4fU, true, true, "" },
     4075    { "v_dot4_i32_i8   v55, v79, v166, v229\n", 0xcc164037U, 0x1f974d4fU, true, true, "" },
     4076    { "v_dot4_u32_u8   v55, v79, v166, v229\n", 0xcc174037U, 0x1f974d4fU, true, true, "" },
     4077    { "v_dot8_i32_i4   v55, v79, v166, v229\n", 0xcc184037U, 0x1f974d4fU, true, true, "" },
     4078    { "v_dot8_u32_u4   v55, v79, v166, v229\n", 0xcc194037U, 0x1f974d4fU, true, true, "" },
     4079    { nullptr, 0, 0, false, false, 0 }
     4080};
  • CLRadeonExtender/trunk/tests/amdasm/GCNAsmOpcodes.cpp

    r4835 r4873  
    225225            retVal = 1;
    226226        }
     227    for (cxuint i = 0; encGCN151OpcodeCases[i].input!=nullptr; i++)
     228        try
     229        { testEncGCNOpcodes(i, encGCN151OpcodeCases[i], GPUDeviceType::GFX1011); }
     230        catch(const std::exception& ex)
     231        {
     232            std::cerr << ex.what() << std::endl;
     233            retVal = 1;
     234        }
    227235    return retVal;
    228236}
Note: See TracChangeset for help on using the changeset viewer.