Changeset 3598 in CLRX


Ignore:
Timestamp:
Jan 9, 2018, 3:44:33 PM (8 months ago)
Author:
matszpk
Message:

CLRadeonExtender: Asm: Add ASM_TESTRESOLVE for testing.

Location:
CLRadeonExtender/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/CLRX/amdasm/Assembler.h

    r3575 r3598  
    4949{
    5050    ASM_WARNINGS = 1,   ///< enable all warnings for assembler
    51     ASM_FORCE_ADD_SYMBOLS = 2,
    52     ASM_ALTMACRO = 4,
    53     ASM_BUGGYFPLIT = 8, // buggy handling of fpliterals (including fp constants)
    54     ASM_MACRONOCASE = 16, // disable case-insensitive naming (default)
    55     ASM_OLDMODPARAM = 32,   // use old modifier parametrization (values 0 and 1 only)
     51    ASM_FORCE_ADD_SYMBOLS = 2,  ///< force add symbols to binary
     52    ASM_ALTMACRO = 4,   ///< enable altmacro mode
     53    ASM_BUGGYFPLIT = 8, ///< buggy handling of fpliterals (including fp constants)
     54    ASM_MACRONOCASE = 16, /// disable case-insensitive naming (default)
     55    ASM_OLDMODPARAM = 32,   ///< use old modifier parametrization (values 0 and 1 only)
     56    ASM_TESTRESOLVE = (1U<<30), ///< enable resolving symbols if ASM_TESTRUN enabled
    5657    ASM_TESTRUN = (1U<<31), ///< only for running tests
    57     ASM_ALL = FLAGS_ALL&~(ASM_TESTRUN|ASM_BUGGYFPLIT|ASM_MACRONOCASE|
     58    ASM_ALL = FLAGS_ALL&~(ASM_TESTRUN|ASM_TESTRESOLVE|ASM_BUGGYFPLIT|ASM_MACRONOCASE|
    5859                    ASM_OLDMODPARAM)  ///< all flags
    5960};
  • CLRadeonExtender/trunk/amdasm/Assembler.cpp

    r3575 r3598  
    25762576void Assembler::printUnresolvedSymbols(AsmScope* thisScope)
    25772577{
    2578     if ((flags&ASM_TESTRUN) != 0)
     2578    if ((flags&ASM_TESTRUN) != 0 && (flags&ASM_TESTRESOLVE) == 0)
    25792579        return;
    25802580   
  • CLRadeonExtender/trunk/tests/amdasm/AsmRegAlloc.cpp

    r3597 r3598  
    12571257    std::ostringstream errorStream;
    12581258   
    1259     Assembler assembler("test.s", input, (ASM_ALL&~ASM_ALTMACRO) | ASM_TESTRUN,
     1259    Assembler assembler("test.s", input,
     1260                    (ASM_ALL&~ASM_ALTMACRO) | ASM_TESTRUN | ASM_TESTRESOLVE,
    12601261                    BinaryFormat::RAWCODE, GPUDeviceType::CAPE_VERDE, errorStream);
    12611262    bool good = assembler.assemble();
Note: See TracChangeset for help on using the changeset viewer.