Changeset 4785 in CLRX


Ignore:
Timestamp:
Jul 15, 2019, 2:49:52 PM (9 months ago)
Author:
matszpk
Message:

CLRadeonExtender: GCNDisasm: Add testcases for NAVI DL (GFX1011).

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

Legend:

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

    r4759 r4785  
    4444extern const GCNDisasmOpcodeCase decGCNOpcodeGCN15Cases[];
    4545extern const GCNDisasmOpcodeCase2 decGCNOpcodeGCN15Cases2[];
     46extern const GCNDisasmOpcodeCase decGCNOpcodeGCN151Cases[];
    4647
    4748#endif
  • CLRadeonExtender/trunk/tests/amdasm/GCNDisasmOpc15.cpp

    r4784 r4785  
    584584    { 0x1734d715U, 0, false, "        v_mul_u32_u24   v154, v21, v107\n" },
    585585    { 0x1934d715U, 0, false, "        v_mul_hi_u32_u24 v154, v21, v107\n" },
     586    { 0x0534d715U, 0, false, "        VOP2_ill_2      v154, v21, v107\n" },
    586587    { 0x1b34d715U, 0, false, "        VOP2_ill_13     v154, v21, v107\n" },
    587588    { 0x1d34d715U, 0, false, "        VOP2_ill_14     v154, v21, v107\n" },
     
    40344035    { {}, 0, nullptr }
    40354036};
     4037
     4038const GCNDisasmOpcodeCase decGCNOpcodeGCN151Cases[] =
     4039{
     4040    { 0x0534d715U, 0, false, "        v_dot2c_f32_f16 v154, v21, v107\n" },
     4041    { 0x1b34d715U, 0, false, "        v_dot4c_i32_i8  v154, v21, v107\n" },
     4042    { 0xd5020037U, 0x0002b51bU, true, "        VOP3A_ill_258   v55, v27, v90, s0\n" },
     4043    { 0xd50d0037U, 0x4002b41bU, true, "        VOP3A_ill_269   v55, s27, -v90, s0\n" },
     4044    { 0xcc134037U, 0x1f974d4fU, true, "        v_dot2_f32_f16  v55, v79, v166, v229\n" },
     4045    { 0xcc144037U, 0x1f974d4fU, true, "        v_dot2_i32_i16  v55, v79, v166, v229\n" },
     4046    { 0xcc154037U, 0x1f974d4fU, true, "        v_dot2_u32_u16  v55, v79, v166, v229\n" },
     4047    { 0xcc164037U, 0x1f974d4fU, true, "        v_dot4_i32_i8   v55, v79, v166, v229\n" },
     4048    { 0xcc174037U, 0x1f974d4fU, true, "        v_dot4_u32_u8   v55, v79, v166, v229\n" },
     4049    { 0xcc184037U, 0x1f974d4fU, true, "        v_dot8_i32_i4   v55, v79, v166, v229\n" },
     4050    { 0xcc194037U, 0x1f974d4fU, true, "        v_dot8_u32_u4   v55, v79, v166, v229\n" },
     4051    { 0, 0, false, nullptr }
     4052};
  • CLRadeonExtender/trunk/tests/amdasm/GCNDisasmOpcodes.cpp

    r4759 r4785  
    152152            retVal = 1;
    153153        }
     154    for (cxuint i = 0; decGCNOpcodeGCN151Cases[i].expected!=nullptr; i++)
     155        try
     156        { testDecGCNOpcodes(i, decGCNOpcodeGCN151Cases[i], GPUDeviceType::GFX1011); }
     157        catch(const std::exception& ex)
     158        {
     159            std::cerr << ex.what() << std::endl;
     160            retVal = 1;
     161        }
    154162    return retVal;
    155163}
Note: See TracChangeset for help on using the changeset viewer.