Changes between Version 7 and Version 8 of ClrxAsmSyntax


Ignore:
Timestamp:
Nov 10, 2015, 9:00:18 PM (5 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ClrxAsmSyntax

    v7 v8  
    4545s_and_b64 reg1, s[2:3], s[4:5]  # output as s[0:1]
    4646s_cmp_lt_i32 reg1[0], s2        # compare s0 with s2
    47 v_xor_b32 regpool[4], regpool[7], regpool[9]    # v_xor_b32 v20, v23, v25</code></p>
     47v_xor_b32 regpool[4], regpool[7], regpool[9]    # v_xor_b32 v20, v23, v25
     48zx = 10 # zx symbol
     49v_xor_b32 regpool[zx+1], regpool[zx+5], regpool[zx+7]    # v_xor_b32 v27, v31, v33</code></p>
    4850<h3>Sections</h3>
    4951<p>Section is some part of the binary that contains some data. Type of the data depends on
     
    356358on the sections during evaluating an expression. Division, modulo,
    357359binary operations (except negation), logical operations is not legal.</p>
     360<h3>Instruction operands</h3>
     361<p>Instruction operand can be one of list:</p>
     362<ul>
     363<li>GCN register or register range</li>
     364<li>absolute expression</li>
     365<li>float literal</li>
     366<li>in VOP3 encoding operand modifier: abs, neg</li>
     367</ul>
     368<p>An expression can be preceded by '@' to ensure that a following text will be treated as
     369an expression:</p>
     370<p><code>v_add_f32 v0, @v0, v4       # second operand is expression: 'v0' instead of v0 register</code></p>
     371<p>Alternatively, any expression can be inscribed in parentheses to ensure that result.</p>
    358372}}}