Skip to content

Commit

Permalink
Updated SIMD cv.add/cv.sub
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Gouedo <[email protected]>
  • Loading branch information
Pascal Gouedo committed Oct 5, 2023
1 parent 1242cbc commit 2b1f049
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/instruction_set_extensions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1349,9 +1349,9 @@ SIMD ALU operations
+------------------------------------------------------------+------------------------------------------------------------------+
| **Mnemonic** | **Description** |
+============================================================+==================================================================+
| **cv.add[.sc,.sci]{.h,.b} rD, rs1, [rs2, Imm6]** | rD[i] = (rs1[i] + op2[i]) & 0xFFFF |
| **cv.add[.sc,.sci]{.h,.b} rD, rs1, [rs2, Imm6]** | rD[i] = (rs1[i] + op2[i]) & {0xFFFF, 0xFF} |
+------------------------------------------------------------+------------------------------------------------------------------+
| **cv.sub[.sc,.sci]{.h,.b} rD, rs1, [rs2, Imm6]** | rD[i] = (rs1[i] - op2[i]) & 0xFFFF |
| **cv.sub[.sc,.sci]{.h,.b} rD, rs1, [rs2, Imm6]** | rD[i] = (rs1[i] - op2[i]) & {0xFFFF, 0xFF} |
+------------------------------------------------------------+------------------------------------------------------------------+
| **cv.avg[.sc,.sci]{.h,.b} rD, rs1, [rs2, Imm6]** | rD[i] = ((rs1[i] + op2[i]) & {0xFFFF, 0xFF}) >> 1 |
| | |
Expand Down

0 comments on commit 2b1f049

Please sign in to comment.