Changeset 3115 in CLRX


Ignore:
Timestamp:
Jun 1, 2017, 5:28:58 PM (21 months ago)
Author:
matszpk
Message:

CLRadeonExtender: GCNAsm: Stupid in parsing 'off' word in FLAT encoding.

Location:
CLRadeonExtender/trunk
Files:
2 edited

Legend:

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

    r3113 r3115  
    35283528            return false;
    35293529        skipSpacesToEnd(linePtr, end);
    3530         if (flatMode == GCN_FLAT_SCRATCH && linePtr+3<end &&
     3530        if (flatMode == GCN_FLAT_SCRATCH && linePtr+3<=end &&
    35313531            strncasecmp(linePtr, "off", 3)==0 && (linePtr+3==end || !isAlnum(linePtr[3])))
    35323532        { // // if 'off' word
     
    35453545    {
    35463546        skipSpacesToEnd(linePtr, end);
    3547         if (flatMode == GCN_FLAT_SCRATCH && linePtr+3<end &&
     3547        if (flatMode == GCN_FLAT_SCRATCH && linePtr+3<=end &&
    35483548            strncasecmp(linePtr, "off", 3)==0 && (linePtr+3==end || !isAlnum(linePtr[3])))
    35493549        { // if 'off' word
     
    35853585            return false;
    35863586        skipSpacesToEnd(linePtr, end);
    3587         if (flatMode != 0 && linePtr+3<end && strncasecmp(linePtr, "off", 3)==0 &&
     3587        if (flatMode != 0 && linePtr+3<=end && strncasecmp(linePtr, "off", 3)==0 &&
    35883588            (linePtr+3==end || !isAlnum(linePtr[3])))
    35893589        {  // if 'off' word
  • CLRadeonExtender/trunk/tests/amdasm/GCNAsmOpc14.cpp

    r3113 r3115  
    725725    { "global_load_ubyte v47, v[187:188], off glc slc\n",
    726726        0xdc438000U, 0x2f7f00bbU, true, true, "" },
     727    { "global_load_ubyte v47, v[187:188], off glc slc\n",
     728        0xdc438000U, 0x2f7f00bbU, true, true, "" },
    727729    { "global_load_ubyte v47, v[187:188], s[50:51] inst_offset:1043 glc slc\n",
    728730        0xdc438413U, 0x2f3200bbU, true, true, "" },
     
    733735    { "global_load_ubyte v47, v[187:188], s[50:51] inst_offset:zza glc slc\nzza=-3057\n",
    734736        0xdc43940fU, 0x2f3200bbU, true, true, "" },
     737    { "global_load_dword v3, v[5:6], off\n",
     738        0xdc508000U, 0x037f0005U, true, true, "" },
    735739    /* FLAT GLOBAL instructions */
    736740    { "global_load_sbyte v47, v[187:188], s[50:51] glc slc\n",
Note: See TracChangeset for help on using the changeset viewer.