Skip to content

Commit

Permalink
Issue openhwgroup#813 correction.
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Gouedo <pascal.gouedo@dolphin.fr>
  • Loading branch information
Pascal Gouedo committed May 31, 2023
1 parent cdee092 commit f2a1997
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/source/instruction_set_extensions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1331,14 +1331,29 @@ SIMD ALU operations
| **cv.srl[.sc,.sci]{.h,.b} rD, rs1, [rs2, Imm6]** | rD[i] = rs1[i] >> op2[i] |
| | |
| | Note: Immediate is zero-extended, shift is logical. |
| | |
| | Only Imm6[3:0] and rs2[3:0] are used for .h instruction and |
| | Imm6[2:0] and rs2[2:0] for .b instruction. |
| | |
| | Other bits are not used and must be set to 0. |
+------------------------------------------------------------+------------------------------------------------------------------+
| **cv.sra[.sc,.sci]{.h,.b} rD, rs1, [rs2, Imm6]** | rD[i] = rs1[i] >>> op2[i] |
| | |
| | Note: Immediate is zero-extended, shift is arithmetic. |
| | |
| | Only Imm6[3:0] and rs2[3:0] are used for .h instruction and |
| | Imm6[2:0] and rs2[2:0] for .b instruction. |
| | |
| | Other bits are not used and must be set to 0. |
+------------------------------------------------------------+------------------------------------------------------------------+
| **cv.sll[.sc,.sci]{.h,.b} rD, rs1, [rs2, Imm6]** | rD[i] = rs1[i] << op2[i] |
| | |
| | Note: Immediate is zero-extended, shift is logical. |
| | |
| | Only Imm6[3:0] and rs2[3:0] are used for .h instruction and |
| | Imm6[2:0] and rs2[2:0] for .b instruction. |
| | |
| | Other bits are not used and must be set to 0. |
+------------------------------------------------------------+------------------------------------------------------------------+
| **cv.or[.sc,.sci]{.h,.b} rD, rs1, [rs2, Imm6]** | rD[i] = rs1[i] \| op2[i] |
+------------------------------------------------------------+------------------------------------------------------------------+
Expand Down

0 comments on commit f2a1997

Please sign in to comment.