From 0c6a540a85f3ac07e4354fc567e27b89d3584c14 Mon Sep 17 00:00:00 2001 From: taitep Date: Tue, 23 Dec 2025 18:42:50 +0100 Subject: Implement SRLI --- src/instructions.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/instructions.rs') diff --git a/src/instructions.rs b/src/instructions.rs index 8c9c910..e4d5b03 100644 --- a/src/instructions.rs +++ b/src/instructions.rs @@ -25,6 +25,11 @@ pub(crate) fn find_and_exec(instr: Instruction, core: &mut Core) -> Option Some(rvi::addi(core, instr)), 0b001 => (instr.funct6() == 0).then(|| rvi::slli(core, instr)), + 0b101 => match instr.funct6() { + // immediate right-shift + 0b000000 => Some(rvi::srli(core, instr)), + _ => None, + }, 0b111 => Some(rvi::andi(core, instr)), _ => None, }, -- cgit v1.2.3