Changeset 4866 in CLRX


Ignore:
Timestamp:
Jul 28, 2019, 5:17:37 PM (3 weeks ago)
Author:
matszpk
Message:

CLRadeonExtender: GCNAsm: Add EXP encoding testcases (GFX10).

File:
1 edited

Legend:

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

    r4865 r4866  
    31553155    { "    tbuffer_store_format_d16_xyzw v[61:62], v18, s[80:83], s35 idxen offset:2004 "
    31563156        "format:38", 0xe93727d4U, 0x23343d12U, true, true, "" },
     3157    /* EXP encoding */
     3158    { "exp  param5, v116, v93, v27, v124 done vm",
     3159        0xf8001a5fU, 0x7c1b5d74U, true, true, "" },
     3160    { "exp  param25, v116, v93, v27, v124 done vm",
     3161        0xf8001b9fU, 0x7c1b5d74U, true, true, "" },
     3162    { "exp  param0025, v116, v93, v27, v124 done vm",
     3163        0xf8001b9fU, 0x7c1b5d74U, true, true, "" },
     3164    { "exp  mrt0, v116, v93, v27, v124 done vm",
     3165        0xf800180fU, 0x7c1b5d74U, true, true, "" },
     3166    { "exp  mrt6, v116, v93, v27, v124 done vm",
     3167        0xf800186fU, 0x7c1b5d74U, true, true, "" },
     3168    { "exp  pos0, v116, v93, v27, v124 done vm",
     3169        0xf80018cfU, 0x7c1b5d74U, true, true, "" },
     3170    { "exp  pos1, v116, v93, v27, v124 done vm",
     3171        0xf80018dfU, 0x7c1b5d74U, true, true, "" },
     3172    { "exp  pos2, v116, v93, v27, v124 done vm",
     3173        0xf80018efU, 0x7c1b5d74U, true, true, "" },
     3174    { "exp  pos02, v116, v93, v27, v124 done vm",
     3175        0xf80018efU, 0x7c1b5d74U, true, true, "" },
     3176    { "exp  pos3, v116, v93, v27, v124 done vm",
     3177        0xf80018ffU, 0x7c1b5d74U, true, true, "" },
     3178    { "exp  null, v116, v93, v27, v124 done vm",
     3179        0xf800189fU, 0x7c1b5d74U, true, true, "" },
     3180    { "exp  mrtz, v116, v93, v27, v124 done vm",
     3181        0xf800188fU, 0x7c1b5d74U, true, true, "" },
     3182    /* EXP encoding: flags */
     3183    { "exp  param5, v116, v93, v27, v124 done", 0xf8000a5fU, 0x7c1b5d74U, true, true, "" },
     3184    { "exp  param5, v116, v93, v27, v124", 0xf800025fU, 0x7c1b5d74U, true, true, "" },
     3185    { "exp  param5, v116, v93, v27, v124   ", 0xf800025fU, 0x7c1b5d74U, true, true, "" },
     3186    { "exp  mrt0, v116, v116, v93, off done compr vm",
     3187        0xf8001c07U, 0x00005d74U, true, true, "" },
     3188    { "exp  mrt0, v116, v116, v93, v93 done compr vm",
     3189        0xf8001c0fU, 0x00005d74U, true, true, "" },
     3190    { "exp  param5, v116, v93, v27, v124 done:1 compr:0 vm:0",
     3191        0xf8000a5fU, 0x7c1b5d74U, true, true, "" },
     3192    { "exp  mrt0, v116, v116, v93, v93 done:1 compr:1 vm:1",
     3193        0xf8001c0fU, 0x00005d74U, true, true, "" },
     3194    { "exp  param5, v116, v93, v27, v124 done:0 compr:0 vm:0",
     3195        0xf800025fU, 0x7c1b5d74U, true, true, "" },
     3196    { "exp  param5, v116, v93, v27, v124 done:0 compr:0 vm:1",
     3197        0xf800125fU, 0x7c1b5d74U, true, true, "" },
     3198    /* EXP encoding src enables */
     3199    { "exp  param5, v116, v93, v27, off done", 0xf8000a57U, 0x001b5d74U, true, true, "" },
     3200    { "exp  param5, v116, v93, off, v124 done", 0xf8000a5bU, 0x7c005d74U, true, true, "" },
     3201    { "exp  param5, v116, off, off, v124 done", 0xf8000a59U, 0x7c000074U, true, true, "" },
     3202    { "exp  param5, off, v93, v27, off done", 0xf8000a56U, 0x001b5d00U, true, true, "" },
     3203    { "exp  param5, off, v93, off, off done", 0xf8000a52U, 0x00005d00U, true, true, "" },
     3204    { "exp  mrt0, v116, v116, v93, off done compr vm",
     3205        0xf8001c07U, 0x00005d74U, true, true, "" },
     3206    { "exp  mrt0, off , v116, v93, v93 done compr vm",
     3207        0xf8001c0eU, 0x00005d00U, true, true, "" },
     3208    { "exp  mrt0, off , v116, off, v93 done compr vm", 0xf8001c0aU, 0, true, true, "" },
     3209    { "exp  mrt0, v116, off, v93, off done compr vm",
     3210        0xf8001c05U, 0x00005d74U, true, true, "" },
     3211    { "exp  mrt0, off, off, v93, off done compr vm",
     3212        0xf8001c04U, 0x00005d00U, true, true, "" },
     3213    { "exp  mrt0, v116, off, off, off done compr vm",
     3214        0xf8001c01U, 0x00000074U, true, true, "" },
     3215    { "exp  param5, v116, v93, off, off",
     3216        0xf8000253U, 0x00005d74U, true, true, "" },
     3217    /* EXP encoding errors */
     3218    { "exp  param5, v116, v93, v27, v124 xxx", 0, 0, false, false,
     3219        "test.s:1:35: Error: Unknown EXP modifier\n" },
     3220    { "exp  param32, v116, v93, v27, v124 done vm", 0, 0, false, false,
     3221        "test.s:1:6: Error: Param number out of range (0-31)\n" },
     3222    { "exp  pos4, v116, v93, v27, v124 done vm", 0, 0, false, false,
     3223        "test.s:1:6: Error: Pos number out of range (0-3)\n" },
     3224    { "exp  mrt8, v116, v93, v27, v124 done vm", 0, 0, false, false,
     3225        "test.s:1:6: Error: MRT number out of range (0-7)\n" },
     3226    { "exp  mrt0, v116, v117, v93, v93 done compr vm", 0, 0, false, false,
     3227        "test.s:1:18: Error: VSRC1 must be equal to VSRC0 in compr mode\n" },
     3228    { "exp  mrt0, v116, v116, v93, v91 done compr vm", 0, 0, false, false,
     3229        "test.s:1:29: Error: VSRC3 must be equal to VSRC2 in compr mode\n" },
     3230    { "exp  paxxx, v116, v93, v27, v124 done vm", 0, 0, false, false,
     3231        "test.s:1:6: Error: Unknown EXP target\n" },
     3232    { "exp  param, v116, v93, v27, v124 done vm", 0, 0, false, false,
     3233        "test.s:1:6: Error: Missing number\n" },
    31573234    { nullptr, 0, 0, false, false, 0 }
    31583235};
Note: See TracChangeset for help on using the changeset viewer.