Changes between Version 6 and Version 7 of GcnInstrsVop3
- Timestamp:
- 12/06/15 22:00:18 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GcnInstrsVop3
v6 v7 910 910 OUT = -SF1 911 911 VDST = 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 /> 914 Syntax: V_CVT_PK_U8_F32 VDST, SRC0, SRC1, SRC2<br /> 915 Description: Convert floating point value from SRC0 to unsigned byte value with 916 rounding mode from MODE register, and store this byte to (SRC1&3)'th byte with 917 other bytes of SRC2 of VDST.<br /> 918 Operation:<br /> 919 <code>UINT8 shift = ((SRC1&3) * 8) 920 UINT32 mask = 0xff << shift 921 FLOAT f = RNDINT(ASFLOAT(SRC0)) 922 UINT8 VAL8 = 0 923 if (ISNAN(f)) 924 VAL8 = (UINT8)MAX(MIN(f, 255.0), 0.0) 925 VDST = (SRC2&~mask) | (((UINT32)VAL8) << shift)</code></p> 912 926 <h4>V_FMA_F32</h4> 913 927 <p>Opcode: 331 (0x14b) for GCN 1.0/1.1; 459 (0x1cb) for GCN 1.2<br /> … … 1122 1136 <p>Opcode: 348 (0x15c) for GCN 1.0/1.1; 475 (0x1db) for GCN 1.2<br /> 1123 1137 Syntax: V_SAD_U16 VDST, SRC0, SRC1, SRC2<br /> 1124 Description: Calculate sum of absolute differences for two 16-bit words in SRC0 and SRC1, add1125 SRC2 to result, and store result to VDST.<br />1138 Description: Calculate sum of absolute differences for two 16-bit words in SRC0 and SRC1, 1139 add SRC2 to result, and store result to VDST.<br /> 1126 1140 Operation:<br /> 1127 1141 <code>VDST = SRC2