Changes between Version 6 and Version 7 of GcnInstrsVop3


Ignore:
Timestamp:
12/06/15 22:00:18 (8 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GcnInstrsVop3

    v6 v7  
    910910    OUT = -SF1
    911911VDST = OUT</code></p>
     912<h4>V_CVT_PK_U8_F32</h4>
     913<p>Opcode: 350 (0x15e) for GCN 1.0/1.1; 477 (0x1dd) for GCN 1.2<br />
     914Syntax: V_CVT_PK_U8_F32 VDST, SRC0, SRC1, SRC2<br />
     915Description: Convert floating point value from SRC0 to unsigned byte value with
     916rounding mode from MODE register, and store this byte to (SRC1&amp;3)'th byte with
     917other bytes of SRC2 of VDST.<br />
     918Operation:<br />
     919<code>UINT8 shift = ((SRC1&amp;3) * 8)
     920UINT32 mask = 0xff &lt;&lt; shift
     921FLOAT f = RNDINT(ASFLOAT(SRC0))
     922UINT8 VAL8 = 0
     923if (ISNAN(f))
     924    VAL8 = (UINT8)MAX(MIN(f, 255.0), 0.0)
     925VDST = (SRC2&amp;~mask) | (((UINT32)VAL8) &lt;&lt; shift)</code></p>
    912926<h4>V_FMA_F32</h4>
    913927<p>Opcode: 331 (0x14b) for GCN 1.0/1.1; 459 (0x1cb) for GCN 1.2<br />
     
    11221136<p>Opcode: 348 (0x15c) for GCN 1.0/1.1; 475 (0x1db) for GCN 1.2<br />
    11231137Syntax: V_SAD_U16 VDST, SRC0, SRC1, SRC2<br />
    1124 Description: Calculate sum of absolute differences for two 16-bit words in SRC0 and SRC1, add
    1125 SRC2 to result, and store result to VDST.<br />
     1138Description: Calculate sum of absolute differences for two 16-bit words in SRC0 and SRC1,
     1139add SRC2 to result, and store result to VDST.<br />
    11261140Operation:<br />
    11271141<code>VDST = SRC2