Changeset 1734 in CLRX


Ignore:
Timestamp:
Nov 20, 2015, 6:18:56 PM (5 years ago)
Author:
matszpk
Message:

CLRadeonExtender: Doc updates.

Location:
CLRadeonExtender/trunk/doc
Files:
2 edited

Legend:

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

    r1733 r1734  
    6565 Opcode     | Mnemonic (GCN1.0/1.1) | Mnemonic (GCN 1.2)
    6666------------|----------------------|------------------------
    67  1 (0x1)    | --                   | V_ADD_F32
    68  2 (0x2)    | --                   | V_SUB_F32
     67 0 (0x0)    | V_CNDMASK_B32        | V_CNDMASK_B32
     68 1 (0x1)    | V_READLANE_B32       | V_ADD_F32
     69 2 (0x2)    | V_WRITELANE_B32      | V_SUB_F32
    6970 3 (0x3)    | V_ADD_F32            | V_SUBREV_F32
    7071 4 (0x4)    | V_SUB_F32            | V_MUL_LEGACY_F32
     
    8485
    8586Alphabetically sorted instruction list:
     87
     88#### V_ADD_F32
     89
     90Opcode VOP2: 3 (0x3) for GCN 1.0/1.1; 1 (0x1) for GCN 1.2 
     91Opcode VOP3a: 259 (0x103) for GCN 1.0/1.1; 257 (0x101) for GCN 1.2 
     92Syntax: V_ADD_F32 VDST, SRC0, SRC1 
     93Description: Add two FP value from SRC0 and SRC1 and store result to VDST. 
     94Operation: 
     95```
     96VDST = (FLOAT)SRC0 + (FLOAT)SRC1
     97```
     98
     99#### V_CNDMASK_B32
     100
     101Opcode VOP2: 0 (0x0) for GCN 1.0/1.1; 1 (0x0) for GCN 1.2 
     102Opcode VOP3a: 259 (0x100) for GCN 1.0/1.1; 256 (0x100) for GCN 1.2 
     103Syntax VOP2: V_CNDMASK_B32 VDST, SRC0, SRC1, VCC 
     104Syntax VOP3a: V_CNDMASK_B32 VDST, SRC0, SRC1, SSRC2(2) 
     105Description: If bit for current thread of VCC or SDST is set then store SRC1 to VDST,
     106otherwise store SRC0 to VDST. 
     107Operation:
     108```
     109VDST = SSRC2&(1ULL<<THREADID) ? SRC1 : SRC0
     110```
     111
     112#### V_SUB_F32
     113
     114Opcode VOP2: 4 (0x4) for GCN 1.0/1.1; 2 (0x2) for GCN 1.2 
     115Opcode VOP3a: 260 (0x104) for GCN 1.0/1.1; 258 (0x102) for GCN 1.2 
     116Syntax: V_SUB_F32 VDST, SRC0, SRC1 
     117Description: Subtract two FP value from SRC0 and SRC1 and store result to VDST. 
     118Operation: 
     119```
     120VDST = (FLOAT)SRC0 - (FLOAT)SRC1
     121```
  • CLRadeonExtender/trunk/doc/GcnIsa.md

    r1733 r1734  
    2323* HALF, FLOAT, DOUBLE - half, single and double precision floating point
    2424
     25Special variables:
     26
     27* THREADID - identifier for current thread in wave
     28
    2529Special functions:
    2630
Note: See TracChangeset for help on using the changeset viewer.