Changeset 4108 in CLRX


Ignore:
Timestamp:
May 8, 2018, 8:07:41 AM (3 weeks ago)
Author:
matszpk
Message:

CLRadeonExtender: Asm: Update documentations and testcases for '.enum'.

Location:
CLRadeonExtender/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/doc/ClrxAsmPseudoOps.md

    r4102 r4108  
    211211### .enum
    212212
    213 Syntax: .enum [>STARTPOS,] SYMBOL,....
     213Syntax: .enum [>[STARTPOS],] SYMBOL,....
    214214
    215215Simplify defining the enumerations. For every symbol,
    216216define symbol with value of enumeration counter and increase an enumeration counter.
    217 Defined symbols can not be assigned later. Optional STARTPOS sets enumeration counter
    218 to STARTPOS value. Every scope has own enumeration counter. This features simplify
     217Defined symbols can not be assigned later. Optional `>` with optional STARTPOS sets
     218enumeration counter to STARTPOS value or zero (if no STARTPOS given).
     219Every scope has own enumeration counter. This features simplify
    219220joining enumerations with scopes.
    220221
     
    229230    .enum NONE,FULL,INVALID   # NONE=0, FULL=1, INVALID=2
    230231.ends
     232.enum >, myzero             # myzero=0
    231233```
    232234
  • CLRadeonExtender/trunk/tests/amdasm/AsmBasicsCases2.cpp

    r4103 r4108  
    23492349        .ends
    23502350        .enum otherEnum, blabla
     2351        .enum >, myzero
    23512352)ffDXD",
    23522353        BinaryFormat::AMD, GPUDeviceType::CAPE_VERDE, false, { }, { },
     
    23632364            { "blabla", 104, ASMSECT_ABS, 0, true, true, false, 0, 0 },
    23642365            { "joan", 101, ASMSECT_ABS, 0, true, true, false, 0, 0 },
     2366            { "myzero", 0, ASMSECT_ABS, 0, true, true, false, 0, 0 },
    23652367            { "otherEnum", 103, ASMSECT_ABS, 0, true, true, false, 0, 0 },
    23662368            { "sym1", 0, ASMSECT_ABS, 0, true, true, false, 0, 0 },
Note: See TracChangeset for help on using the changeset viewer.