Basic RISC-V Arithmetic Operations
There are three basic arithmetic operations in 32-bit RISC-V. Pseudoinstructions are italicized:
| Operation | Description |
| :----------: | :------------: |
| add | Setsx1to the sum ofx2andx3. |
| sub | Setsx1to the difference ofx2andx3. |
| addi | Setsx1to the sum ofx2and some immediatek. |
| neg | |Note!
There is no multiplication and division in the vanilla RISC-V instruction set. Refer to 2.1c.2 for ways to multiply and divide numbers.