Changeset 3111 in CLRX


Ignore:
Timestamp:
May 31, 2017, 8:50:36 AM (2 years ago)
Author:
matszpk
Message:

CLRadeonExtender: GNAsm: Fixed comment in testcases. Simplify comparison of words.

Location:
CLRadeonExtender/trunk
Files:
3 edited

Legend:

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

    r3105 r3111  
    10031003        if ((arch & ARCH_GCN_1_2_4)!=0 &&
    10041004            (instrOpMask & (INSTROP_NOSEXT|INSTROP_VOP3P))==0 &&
    1005             linePtr+4 <= end && toLower(linePtr[0])=='s' &&
    1006             toLower(linePtr[1])=='e' && toLower(linePtr[2])=='x' &&
    1007             toLower(linePtr[3])=='t')
     1005            linePtr+4 <= end && strncasecmp(linePtr, "sext", 4)==0)
    10081006        {   /* sext */
    10091007            linePtr += 4;
  • CLRadeonExtender/trunk/amdasm/GCNAssembler.cpp

    r3109 r3111  
    35293529        skipSpacesToEnd(linePtr, end);
    35303530        if (flatMode == GCN_FLAT_SCRATCH && linePtr+3<end &&
    3531             toLower(linePtr[0])=='o' && toLower(linePtr[1])=='f' &&
    3532             toLower(linePtr[2])=='f' && (linePtr+3==end || !isAlnum(linePtr[3])))
    3533         { // if off
     3531            strncasecmp(linePtr, "off", 3)==0 && (linePtr+3==end || !isAlnum(linePtr[3])))
     3532        { // // if 'off' word
    35343533            vaddrOff = true;
    35353534            linePtr+=3;
     
    35473546        skipSpacesToEnd(linePtr, end);
    35483547        if (flatMode == GCN_FLAT_SCRATCH && linePtr+3<end &&
    3549             toLower(linePtr[0])=='o' && toLower(linePtr[1])=='f' &&
    3550             toLower(linePtr[2])=='f' && (linePtr+3==end || !isAlnum(linePtr[3])))
    3551         { // if off
     3548            strncasecmp(linePtr, "off", 3)==0 && (linePtr+3==end || !isAlnum(linePtr[3])))
     3549        { // if 'off' word
    35523550            vaddrOff = true;
    35533551            linePtr+=3;
     
    35873585            return false;
    35883586        skipSpacesToEnd(linePtr, end);
    3589         if (flatMode != 0 && linePtr+3<end &&
    3590             toLower(linePtr[0])=='o' && toLower(linePtr[1])=='f' &&
    3591             toLower(linePtr[2])=='f' && (linePtr+3==end || !isAlnum(linePtr[3])))
    3592         { // if off
     3587        if (flatMode != 0 && linePtr+3<end && strncasecmp(linePtr, "off", 3)==0 &&
     3588            (linePtr+3==end || !isAlnum(linePtr[3])))
     3589        {  // if 'off' word
    35933590            saddrOff = true;
    35943591            linePtr+=3;
  • CLRadeonExtender/trunk/tests/amdasm/GCNAsmOpc14.cpp

    r3110 r3111  
    718718    { "scratch_load_short_d16_hi v47, off, s49 glc slc\n",
    719719        0xdc974000U, 0x2f3100ffU, true, true, "" },
    720     /* FLAT GLOBAL scope */
     720    /* FLAT GLOBAL encoding */
    721721    { "global_load_ubyte v47, v[187:188], s[50:51] glc slc\n",
    722722        0xdc438000U, 0x2f3200bbU, true, true, "" },
Note: See TracChangeset for help on using the changeset viewer.