Skip to content

Commit

Permalink
Merge branch 'feature/mips/bltz' into feature/mips/lbu
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmr1993 committed Dec 6, 2023
2 parents e8840d6 + b39a95e commit 84af145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimism/src/mips/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ pub fn interpret_itype<Env: InterpreterEnv>(env: &mut Env, instr: ITypeInstructi
unsafe { env.test_less_than_signed(&rs, &Env::constant(0), pos) }
};
let offset =
less_than.clone() * Env::constant(4) + (Env::constant(1) - less_than) * offset;
(Env::constant(1) - less_than.clone()) * Env::constant(4) + less_than * offset;
let addr = {
let pos = env.alloc_scratch();
env.copy(&(next_instruction_pointer.clone() + offset), pos)
Expand Down

0 comments on commit 84af145

Please sign in to comment.