Categorize RV32IM instructions by type

This commit is contained in:
Donald Sebastian Leung 2020-07-31 11:56:22 +08:00
parent aa9967e83d
commit 29c5e52574

11
insns/insn_types.md Normal file
View File

@ -0,0 +1,11 @@
# RV32IM Instruction Types
| Instruction type | Instructions |
| --- | --- |
| U-type | lui, auipc |
| UJ-type | jal |
| I-type | jalr, lb, lh, lw, lbu, lhu, addi, slti, sltiu, xori, ori, andi |
| SB-type | beq, bne, blt, bge, bltu, bgeu |
| S-type | sb, sh, sw |
| I-type (shift variation) | slli, srli, srai |
| R-type | add, sub, sll, slt, sltu, xor, srl, sra, or, and, mul, mulh, mulhsu, mulhu, div, divu, rem, remu |