Changeset 3303 in CLRX


Ignore:
Timestamp:
Sep 3, 2017, 4:50:41 PM (16 months ago)
Author:
matszpk
Message:

CLRadeonExtender: GCNAsm: yet another small commenting and fixing.

File:
1 edited

Legend:

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

    r3253 r3303  
    4646{
    4747
     48// print error 'range expected', return true if printed, false if not
    4849bool GCNAsmUtils::printRegisterRangeExpected(Assembler& asmr, const char* linePtr,
    4950               const char* regPoolName, cxuint regsNum, bool required)
     
    409410        return false;
    410411    }
    411    
    412     if (printRegisterRangeExpected(asmr, vgprRangePlace, "vector", regsNum, required))
    413         return false;
    414     regPair = { 0, 0 }; // no range
    415     linePtr = oldLinePtr; // revert current line pointer
    416     return true;
    417412}
    418413
     
    666661       
    667662        if (!ttmpReg)
    668         {
     663        {   // is scalar register
    669664            if (value2 < value1)
    670665            {   // error (illegal register range)
     
    680675        }
    681676        else
    682         {
     677        {   // is TTMP register
    683678            if (value2 < value1)
    684679            {   // error (illegal register range)
     
    736731        return false;
    737732    }
    738    
    739     if (printRegisterRangeExpected(asmr, sgprRangePlace, "scalar", regsNum, required))
    740         return false;
    741     regPair = { 0, 0 };
    742     linePtr = oldLinePtr; // revert current line pointer
    743     return true;
    744733}
    745734
Note: See TracChangeset for help on using the changeset viewer.