Changeset 4822 in CLRX


Ignore:
Timestamp:
Jul 22, 2019, 3:48:11 PM (4 weeks ago)
Author:
matszpk
Message:

CLRadeonExtender: GCNAsm: Add VOPC SDWAB and DPP(8) encoding testcases (for GFX10).

File:
1 edited

Legend:

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

    r4821 r4822  
    15911591    { "    v_cmp_f_f32  vcc, s8, s8", 0xd400006aU, 0x1008U, true, true, "" },
    15921592    { "    v_cmp_f_f32  vcc, s8, s9", 0xd400006aU, 0x1208U, true, true, "" },
     1593    /* VOPC SDWAB */
     1594    { "v_cmp_class_f32 vcc, v0, v107 src0_sel:byte0 src1_sel:byte0",
     1595        0x7d10d6f9U, 0x0000, true, true, "" },
     1596    { "v_cmp_class_f32 vcc, v61, v107 src0_sel:byte0 src1_sel:byte0",
     1597        0x7d10d6f9U, 0x3dU, true, true, "" },
     1598    { "v_cmp_class_f32 vcc, v61, vcc_hi src0_sel:byte0 src1_sel:byte0",
     1599        0x7d10d6f9U, 0x8000003dU, true, true, "" },
     1600    { "v_cmp_class_f32 vcc, s61, v107 src0_sel:byte0 src1_sel:byte0\n",
     1601        0x7d10d6f9U, 0x0080003dU, true, true, "" },
     1602    { "v_cmp_class_f32 vcc, sext(-abs(v65)), v107",
     1603        0x7d10d6f9U, 0x063e0041U, true, true, "" },
     1604    { "v_cmp_class_f32 vcc, sext(-abs(v65)), vcc_hi",
     1605        0x7d10d6f9U, 0x863e0041U, true, true, "" },
     1606    { "v_cmp_class_f32 vcc, sext(-abs(s65)), v107",
     1607        0x7d10d6f9U, 0x06be0041U, true, true, "" },
     1608    { "v_cmp_class_f32 s[38:39], v0, v107 src0_sel:byte0 src1_sel:byte0",
     1609        0x7d10d6f9U, 0xa600, true, true, "" },
     1610    // ERRORS
     1611    { "v_cmp_class_f32 vcc, v0, v107 mul:4 dst_sel:byte0 src0_sel:byte0 src1_sel:byte0",
     1612        0, 0, false, false, "test.s:1:37: Error: Unknown VOP modifier\n"
     1613        "test.s:1:44: Error: Some garbages at VOP modifier place\n" },
     1614    { "v_cmp_class_f32 vcc, v0, v107 mul:4 dst_un:preserve src0_sel:byte0 src1_sel:byte0",
     1615        0, 0, false, false, "test.s:1:37: Error: Unknown VOP modifier\n"
     1616        "test.s:1:43: Error: Some garbages at VOP modifier place\n" },
     1617    { "v_cmp_class_f32 vcc, sext(-abs(v65)), v107 mul:2",
     1618        0, 0, false, false,
     1619        "test.s:1:1: Error: Modifiers CLAMP and OMOD is illegal in SDWAB\n" },
     1620    { "v_cmp_class_f32 vcc, sext(-abs(v65)), v107 clamp",
     1621        0, 0, false, false,
     1622        "test.s:1:1: Error: Modifiers CLAMP and OMOD is illegal in SDWAB\n" },
     1623    /* VOPC DPP */
     1624    { "v_cmp_class_f32 vcc, v61, v107 row_shr:14",
     1625        0x7d10d6faU, 0xff011e3dU, true, true, "" },
     1626    /* VOPC DPP8 */
     1627    { "v_cmp_class_f32 vcc, v61, v107 dpp8:[1,7,2,5,6,3,6,4]",
     1628        0x7d10d6e9U, 0x99eab93dU, true, true, "" },
     1629    { "v_cmp_class_f32 vcc, v61, v107 dpp8:[1,7,2,5,6,3,6,4] fi",
     1630        0x7d10d6eaU, 0x99eab93dU, true, true, "" },
    15931631    /* VOPC errors */
    15941632    { "    v_cmp_f_f32  vcc_lo, v79, v201", 0, 0, false, false,
Note: See TracChangeset for help on using the changeset viewer.