From 29c5e52574e3461249df2da305eed4bca82fd993 Mon Sep 17 00:00:00 2001 From: Donald Sebastian Leung Date: Fri, 31 Jul 2020 11:56:22 +0800 Subject: [PATCH] Categorize RV32IM instructions by type --- insns/insn_types.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 insns/insn_types.md diff --git a/insns/insn_types.md b/insns/insn_types.md new file mode 100644 index 0000000..5228a1f --- /dev/null +++ b/insns/insn_types.md @@ -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 |