Changeset 3092 in CLRX


Ignore:
Timestamp:
May 28, 2017, 5:16:32 PM (2 years ago)
Author:
matszpk
Message:

CLRadeonExtender: GCNAsm: Add parametrization to modifiers in SMEM encoding.

Location:
CLRadeonExtender/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/amdasm/GCNAssembler.cpp

    r3091 r3092  
    13161316            toLowerString(name);
    13171317            if (::strcmp(name, "glc")==0)
    1318                 haveGlc = true;
     1318                good &= parseModEnable(asmr, linePtr, haveGlc, "glc modifier");
    13191319            else if (isGCN14 && ::strcmp(name, "nv")==0)
    1320                 haveNv = true;
     1320                good &= parseModEnable(asmr, linePtr, haveNv, "nv modifier");
    13211321            else if (isGCN14 && ::strcmp(name, "offset")==0)
    13221322            {
  • CLRadeonExtender/trunk/tests/amdasm/GCNAsmOpc12.cpp

    r3088 r3092  
    168168    /* SMEM encoding */
    169169    { "    s_load_dword  s50, s[58:59], 0x1345b", 0xc0020c9dU, 0x1345b, true, true, "" },
     170    { "    s_load_dword  s50, s[58:59], 0x1345b glc:0",
     171        0xc0020c9dU, 0x1345b, true, true, "" },
    170172    { "    s_load_dword  s50, s[58:59], 0x1345b glc   ",
     173        0xc0030c9dU, 0x1345b, true, true, "" },
     174    { "    s_load_dword  s50, s[58:59], 0x1345b glc:1   ",
    171175        0xc0030c9dU, 0x1345b, true, true, "" },
    172176    { "    s_load_dword  s50, s[58:59], 0x1345b glc  glc ",
  • CLRadeonExtender/trunk/tests/amdasm/GCNAsmOpc14.cpp

    r3083 r3092  
    201201    /* SMEM encoding */
    202202    { "s_load_dword    s50, s[58:59], s91\n", 0xc0000c9dU, 0x5b, true, true, "" },
     203    { "s_load_dword    s50, s[58:59], s91 glc:0 nv:0\n",
     204        0xc0000c9dU, 0x5b, true, true, "" },
    203205    { "s_load_dword    s50, s[58:59], 0x5b\n", 0xc0020c9dU, 0x5b, true, true, "" },
    204206    { "s_load_dword    s50, s[58:59], 0x13da5b\n", 0xc0020c9dU, 0x13da5b, true, true, "" },
    205207    { "s_load_dword    s50, s[58:59], 0x5b nv\n", 0xc0028c9dU, 0x5b, true, true, "" },
     208    { "s_load_dword    s50, s[58:59], 0x5b nv:1\n", 0xc0028c9dU, 0x5b, true, true, "" },
    206209    { "s_load_dword    s50, s[58:59], 0x5b nv glc\n", 0xc0038c9dU, 0x5b, true, true, "" },
    207210    { "s_load_dword    s50, s[58:59], 0x32 offset:0x5b\n",
Note: See TracChangeset for help on using the changeset viewer.