Changeset 1675 in CLRX


Ignore:
Timestamp:
Nov 7, 2015, 5:42:38 PM (5 years ago)
Author:
matszpk
Message:

CLRadeonExtender: Added register's symbols to ClrxAsmSyntax.md.

File:
1 edited

Legend:

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

    r1629 r1675  
    5353```
    5454v_add_i32 v32,3f-3b,v2  # 3b is previous `3` label, 3f is next `3` label
     55```
     56
     57CLRX assembler accepts assignment register or register's range to symbols.
     58Register or register's range shall to be preceded by '%' at assignment.
     59Register symbol can be used for instruction operand or other register assignment.
     60Register subranges or just single register can be extracted from parent register ranges
     61by using indexing as well as regular register pools. Example:
     62
     63```
     64regpool = %v[16:31]
     65reg1 = %s[0:1]
     66s_and_b64 reg1, s[2:3], s[4:5]  # output as s[0:1]
     67s_cmp_lt_i32 reg1[0], s2        # compare s0 with s2
     68v_xor_b32 regpool[4], regpool[7], regpool[9]    # v_xor_b32 v20, v23, v25
    5569```
    5670
Note: See TracChangeset for help on using the changeset viewer.