Changeset 4789 in CLRX


Ignore:
Timestamp:
Jul 15, 2019, 8:02:44 PM (9 months ago)
Author:
matszpk
Message:

CLRadeonExtender: GCNAsm: Add 'offset' modifier name (thi same as 'inst_offset') for FLAT encoding.

Location:
CLRadeonExtender/trunk
Files:
2 edited

Legend:

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

    r4767 r4789  
    996996        else if (::strcmp(name, "slc") == 0)
    997997            good &= parseModEnable(asmr, linePtr, haveSlc, "slc modifier");
    998         else if (isGCN14 && ::strcmp(name, "inst_offset")==0)
     998        else if (isGCN14 && (::strcmp(name, "inst_offset")==0 ||
     999                            ::strcmp(name, "offset")==0))
    9991000        {
    10001001            // parse inst_offset, 13-bit with sign, or 12-bit unsigned
  • CLRadeonExtender/trunk/tests/amdasm/GCNAsmOpc14.cpp

    r4768 r4789  
    750750    { "flat_load_ubyte v47, v[187:188] inst_offset:529\n",
    751751        0xdc400211U, 0x2f0000bbU, true, true, "" },
     752    { "flat_load_ubyte v47, v[187:188] offset:529\n",
     753        0xdc400211U, 0x2f0000bbU, true, true, "" },
    752754    { "flat_load_ubyte v47, v[187:188] inst_offset:zzz\nzzz=529\n",
    753755        0xdc400211U, 0x2f0000bbU, true, true, "" },
Note: See TracChangeset for help on using the changeset viewer.