Changes between Version 29 and Version 30 of GcnInstrsVop2


Ignore:
Timestamp:
Jun 16, 2017, 8:00:25 PM (2 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GcnInstrsVop2

    v29 v30  
    810810Description: Multiply FP16 value from SRC0 with FP16 value from SRC1 and add
    811811the constant literal FLOATLIT16; and store result to VDST. Constant literal follows
    812 after instruction word. It flush denormals.<br />
     812after instruction word.<br />
    813813Operation:
    814814<code>VDST = ASHALF(SRC0) * ASHALF(SRC1) + ASHALF(FLOAT16LIT)</code></p>
     
    828828Description: Multiply FP16 value from SRC0 with the constant literal FLOAT16LIT and add
    829829FP16 value from SRC1; and store result to VDST. Constant literal follows
    830 after instruction word. It flush denormals.<br />
     830after instruction word.<br />
    831831Operation:
    832832<code>VDST = ASHALF(SRC0) * ASHALF(FLOAT16LIT) + ASHALF(SRC1)</code></p>
     
    856856Operation:<br />
    857857<code>VDST = MAX(ASFLOAT(SRC0), ASFLOAT(SRC1))</code></p>
     858<h4>V_MAX_I16</h4>
     859<p>Opcode VOP2: 48 (0x30) for GCN 1.2<br />
     860Opcode VOP3A: 304 (0x130) for GCN 1.2<br />
     861Syntax: V_MIN_i16 VDST, SRC0, SRC1<br />
     862Description: Choose largest signed 16-bit value from SRC0 and SRC1,
     863and store result to VDST.<br />
     864Operation:<br />
     865<code>VDST = MAX((INT16)SRC0, (INT16)SRC1)</code></p>
    858866<h4>V_MAX_I32</h4>
    859867<p>Opcode VOP2: 18 (0x12) for GCN 1.0/1.1; 13 (0xd) for GCN 1.2<br />
     
    875883else
    876884    VDST = NaN</code></p>
     885<h4>V_MAX_U16</h4>
     886<p>Opcode VOP2: 47 (0x2f) for GCN 1.2<br />
     887Opcode VOP3A: 303 (0x12f) for GCN 1.2<br />
     888Syntax: V_MAX_U16 VDST, SRC0, SRC1<br />
     889Description: Choose largest unsigned 16-bit value from SRC0 and SRC1,
     890and store result to VDST.<br />
     891Operation:<br />
     892<code>VDST = MAX(SRC0&amp;0xffff, SRC1&amp;0xffff)</code></p>
    877893<h4>V_MAX_U32</h4>
    878894<p>Opcode VOP2: 20 (0x14) for GCN 1.0/1.1; 15 (0xf) for GCN 1.2<br />
     
    918934Operation:<br />
    919935<code>VDST = MIN(ASFLOAT(SRC0), ASFLOAT(SRC1))</code></p>
    920 <h4>V_MIN_i16</h4>
     936<h4>V_MIN_I16</h4>
    921937<p>Opcode VOP2: 50 (0x32) for GCN 1.2<br />
    922938Opcode VOP3A: 306 (0x132) for GCN 1.2<br />