Changeset 3170 in CLRX


Ignore:
Timestamp:
Jun 17, 2017, 10:03:20 AM (2 years ago)
Author:
matszpk
Message:

CLRadeonExtender: CLRXDocs: Add descriptions of new GCN1.2 VOP1 instructions (V_FREXP*). Fixed typo in V_FREXP_MANT_F32.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/doc/GcnInstrsVop1.md

    r3169 r3170  
    761761```
    762762
     763#### V_FREXP_EXP_I16_F16
     764
     765Opcode VOP1: 67 (0x43) for GCN 1.2 
     766Opcode VOP3A: 387 (0x183) for GCN 1.2 
     767Syntax: V_FREXP_EXP_I16_F16 VDST, SRC0 
     768Description: Get exponent plus 1 from half FP value SRC0, and store that exponent to VDST
     769as 16-bit signed integer. This instruction realizes frexp function.
     770If SRC0 is infinity or NAN then store -1 to VDST. 
     771Operation: 
     772```
     773HALF SF = ASHALF(SRC0)
     774if (ABS(SF) != INF_H && !ISNAN(SF))
     775    VDST = (INT16)FREXP_EXP(SF)
     776else
     777    VDST = (INT16)-1
     778```
     779
    763780#### V_FREXP_EXP_I32_F32
    764781
     
    795812```
    796813
     814#### V_FREXP_MANT_F16
     815
     816Opcode VOP1: 66 (0x42) for GCN 1.2 
     817Opcode VOP3A: 386 (0x182) for GCN 1.2 
     818Syntax: V_FREXP_MANT_F16 VDST, SRC0 
     819Description: Get mantisa from half FP value SRC0, and store it to VDST. Mantisa includes
     820sign of input. If SRC0 is infinity then store -NAN to VDST. 
     821Operation: 
     822```
     823HALF SF = ASHALF(SRC0)
     824if (ABS(SF) == INF)
     825    VDST = -NAN_H
     826else if (!ISNAN(SF))
     827    VDST = FREXP_MANT(SF) * SIGN(SF)
     828else
     829    VDST = NAN_H * SIGN(SF)
     830```
     831
    797832#### V_FREXP_MANT_F32
    798833
     
    800835Opcode VOP3A: 448 (0x1c0) for GCN 1.0/1.1; 372 (0x174) for GCN 1.2 
    801836Syntax: V_FREXP_MANT_F32 VDST, SRC0 
    802 Description: Get mantisa from double FP value SRC0, and store it to VDST. Mantisa includes
     837Description: Get mantisa from single FP value SRC0, and store it to VDST. Mantisa includes
    803838sign of input. If SRC0 is infinity then store -NAN to VDST. 
    804839Operation: 
Note: See TracChangeset for help on using the changeset viewer.