diff --git a/o1vm/src/interpreters/riscv32im/interpreter.rs b/o1vm/src/interpreters/riscv32im/interpreter.rs index a90567e32c..6f053def0a 100644 --- a/o1vm/src/interpreters/riscv32im/interpreter.rs +++ b/o1vm/src/interpreters/riscv32im/interpreter.rs @@ -1793,13 +1793,6 @@ pub fn interpret_itype(env: &mut Env, instr: IInstruction) IInstruction::ShiftRightArithmeticImmediate => { // srai: x[rd] = x[rs1] >> shamt let local_rs1 = env.read_register(&rs1); - let shamt = { - let pos = env.alloc_scratch(); - unsafe { env.bitmask(&imm, 5, 0, pos) } - }; - // parse shamt from imm as 20-24 of instruction and 0-4 wrt to imm - // sign extend shamt for arithmetic shift - let shamt = env.sign_extend(&shamt, 4); let local_rd = { let pos = env.alloc_scratch();