summaryrefslogtreecommitdiff
path: root/src/instructions.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/instructions.rs')
-rw-r--r--src/instructions.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/instructions.rs b/src/instructions.rs
index bfedaee..fc270dc 100644
--- a/src/instructions.rs
+++ b/src/instructions.rs
@@ -16,6 +16,11 @@ pub(crate) fn find_and_exec(instr: Instruction, core: &mut Core) -> Option<Instr
0b00100 => match instr.funct3() {
// OP_IMM
0b000 => Some(rvi::addi(core, instr)),
+ 0b001 => match instr.funct6() {
+ // left-shift immediate
+ 0b000000 => Some(rvi::slli(core, instr)),
+ _ => None,
+ },
_ => None,
},
0b00110 => match instr.funct3() {