Changeset 4821 in CLRX


Ignore:
Timestamp:
Jul 22, 2019, 3:07:33 PM (5 months ago)
Author:
matszpk
Message:

CLRadeonExtender: GCNAsm: Add VOPC encoding testcases (for GFX10).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/tests/amdasm/GCNAsmOpc15.cpp

    r4820 r4821  
    15681568        "test.s:1:16: Error: Required 1 vector register\n"
    15691569        "test.s:1:26: Error: Required 1 scalar register\n" },
     1570    /* VOPC encoding */
     1571    { "    v_cmp_f_f32  vcc, v79, v201", 0x7c01934fU, 0, false, true, "" },
     1572    { "    v_cmp_f_f32  vcc, v79, v93", 0x7c00bb4fU, 0, false, true, "" },
     1573    { "    v_cmp_f_f32  vcc, lds, v201", 0x7c0192feU, 0, false, true, "" },
     1574    { "    v_cmp_f_f32  vcc, lds_direct, v201", 0x7c0192feU, 0, false, true, "" },
     1575    { "    v_cmp_f_f32  vcc, s79, v201", 0x7c01924fU, 0, false, true, "" },
     1576    { "    v_cmp_f_f32  vcc, -9, v201", 0x7c0192c9U, 0, false, true, "" },
     1577    { "    v_cmp_f_f32  vcc, 44517, v201", 0x7c0192ffU, 44517, true, true, "" },
     1578    { "txy=54244;v_cmp_f_f32  vcc, txy, v201", 0x7c0192ffU, 54244, true, true, "" },
     1579    { "v_cmp_f_f32  vcc, txy, v201;txy=54244", 0x7c0192ffU, 54244, true, true, "" },
     1580    { "    v_cmp_f_f32  vcc, v79, v201 vop3", 0xd400006aU, 0x3934fU, true, true, "" },
     1581    { "    v_cmp_f_f32  vcc, v79, v201 clamp", 0xd400806aU, 0x3934fU, true, true, "" },
     1582    { "    v_cmp_f_f32  vcc, v79, abs(v201)", 0xd400026aU, 0x3934fU, true, true, "" },
     1583    { "    v_cmp_f_f32  vcc, -v79, v201", 0xd400006aU, 0x2003934fU, true, true, "" },
     1584    { "    v_cmp_f_f32  vcc, v79, -v201", 0xd400006aU, 0x4003934fU, true, true, "" },
     1585    { "    v_cmp_f_f32  vcc, v79, v201 mul:2", 0xd400006aU, 0x0803934fU, true, true, "" },
     1586    { "    v_cmp_f_f32  vcc, v79, s101", 0xd400006aU, 0x0cb4fU, true, true, "" },
     1587    { "    v_cmp_f_f32  vcc, v79, 24", 0xd400006aU, 0x1314fU, true, true, "" },
     1588    { "    v_cmp_f_f32  s[28:29], v79, v201", 0xd400001cU, 0x3934fU, true, true, "" },
     1589    { "    v_cmp_f_f32  s[29:30], v79, v201", 0xd400001dU, 0x3934fU, true, true, "" },
     1590    { "    v_cmp_f_f32  vcc, 10.5332, v201", 0x7c0192ffU, 0x412887fd, true, true, "" },
     1591    { "    v_cmp_f_f32  vcc, s8, s8", 0xd400006aU, 0x1008U, true, true, "" },
     1592    { "    v_cmp_f_f32  vcc, s8, s9", 0xd400006aU, 0x1208U, true, true, "" },
     1593    /* VOPC errors */
     1594    { "    v_cmp_f_f32  vcc_lo, v79, v201", 0, 0, false, false,
     1595        "test.s:1:18: Error: Required 2 scalar registers\n" },
     1596    { "    v_cmp_f_f32  vcc, 42321, s37", 0, 0, false, false,
     1597        "test.s:1:5: Error: Literal with SGPR or M0 is illegal\n" },
     1598    { "    v_cmp_f_f32  vcc, 42321, m0", 0, 0, false, false,
     1599        "test.s:1:5: Error: Literal with SGPR or M0 is illegal\n" },
     1600    { "    v_cmp_f_f32  vcc, s68, 42321", 0, 0, false, false,
     1601        "test.s:1:5: Error: Literal with SGPR or M0 is illegal\n" },
     1602    { "    v_cmp_f_f32  vcc, m0, 42321", 0, 0, false, false,
     1603        "test.s:1:5: Error: Literal with SGPR or M0 is illegal\n" },
     1604    { "    v_cmp_f_f32  vcc, 44517, v201 vop3", 0, 0, false, false,
     1605        "test.s:1:5: Error: Literal in VOP3 encoding is illegal\n" },
     1606    { "    v_cmp_f_f32  vcc, 44517, 63111", 0, 0, false, false,
     1607        "test.s:1:30: Error: Only one literal can be used in instruction\n" },
     1608    { "    v_cmp_f_f32  vcc, sss, dddd", 0, 0, false, false,
     1609        "test.s:1:28: Error: Only one literal can be used in instruction\n" },
    15701610    { nullptr, 0, 0, false, false, 0 }
    15711611};
Note: See TracChangeset for help on using the changeset viewer.