Changeset 3714 in CLRX


Ignore:
Timestamp:
Feb 3, 2018, 4:16:02 PM (15 months ago)
Author:
matszpk
Message:

CLRadeonExtender: CLRXDocs: Typo in AmdCL2. Gallium: Add info about scratch symbol relocations.

Location:
CLRadeonExtender/trunk/doc
Files:
2 edited

Legend:

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

    r3712 r3714  
    2626## Relocations
    2727
    28 An CLRX assembler handles relocations to symbol at global data, global rwdata and
     28A CLRX assembler handles relocations to symbol at global data, global rwdata and
    2929global bss data in kernel code. These relocations can be applied to places that accepts
    303032-bit literal immediates. Only two types of relocations is allowed:
  • CLRadeonExtender/trunk/doc/ClrxAsmGallium.md

    r3702 r3714  
    2424
    2525Kernel function should to be aligned to 256 byte boundary.
     26
     27## Relocations
     28
     29A CLRX assembler handles relocations to scratch symbol (`.scratchsym` pseudo-op).
     30These relocations can be applied to places that accepts
     3132-bit literal immediates. Only two types of relocations is allowed:
     32
     33* `place`, `place&0xffffffff`, `place%0x10000000`, `place%%0x10000000` -
     34low 32 bits of value
     35* `place>>32`, `place/0x100000000`, `place//0x100000000` - high 32 bits of value
     36
     37The `place` indicates an expression with scratch symbol. Additional offsets
     38are not accepted (only same scratch symbol).
     39
     40Examples:
     41
     42```
     43s_mov_b32       s13, scratchsym>>32
     44s_mov_b32       s12, scratchsym&0xffffffff
     45```
    2646
    2747## Register usage setup
Note: See TracChangeset for help on using the changeset viewer.