Changes between Version 5 and Version 6 of ClrxAsmSyntax


Ignore:
Timestamp:
Nov 7, 2015, 6:00:17 PM (5 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ClrxAsmSyntax

    v5 v6  
    3636adding <code>b</code> or <code>f</code> suffix.</p>
    3737<p><code>v_add_i32 v32,3f-3b,v2  # 3b is previous `3` label, 3f is next `3` label</code></p>
     38<p>CLRX assembler accepts assignment register or register's range to symbols.
     39Register or register's range shall to be preceded by '%' at assignment.
     40Register symbol can be used for instruction operand or other register assignment.
     41Register subranges or just single register can be extracted from parent register ranges
     42by using indexing as well as regular register pools. Example:</p>
     43<p><code>regpool = %v[16:31]
     44reg1 = %s[0:1]
     45s_and_b64 reg1, s[2:3], s[4:5]  # output as s[0:1]
     46s_cmp_lt_i32 reg1[0], s2        # compare s0 with s2
     47v_xor_b32 regpool[4], regpool[7], regpool[9]    # v_xor_b32 v20, v23, v25</code></p>
    3848<h3>Sections</h3>
    3949<p>Section is some part of the binary that contains some data. Type of the data depends on