mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-25 00:53:25 +00:00
SHR
This commit is contained in:
parent
ea31a803ca
commit
fc761f7c20
@ -226,7 +226,7 @@ impl<'a> Interpreter<'a> {
|
||||
0x19 => self.run_not(), // "NOT",
|
||||
0x1a => self.run_byte(), // "BYTE",
|
||||
0x1b => self.run_shl(), // "SHL",
|
||||
0x1c => todo!(), // "SHR",
|
||||
0x1c => self.run_shr(), // "SHR",
|
||||
0x1d => todo!(), // "SAR",
|
||||
0x20 => self.run_keccak256(), // "KECCAK256",
|
||||
0x30 => todo!(), // "ADDRESS",
|
||||
|
||||
@ -48,13 +48,11 @@ fn test_ripemd() -> Result<()> {
|
||||
let final_stack: Vec<U256> = run_with_kernel(&kernel, initial_offset, initial_stack)?
|
||||
.stack()
|
||||
.to_vec();
|
||||
|
||||
let actual = final_stack[0];
|
||||
|
||||
let read_out: Vec<String> = final_stack.iter().map(|x| format!("{:x}", x)).rev().collect();
|
||||
println!("{:x?}", read_out);
|
||||
|
||||
assert_eq!(actual, expected);
|
||||
|
||||
// let read_out: Vec<String> = final_stack.iter().map(|x| format!("{:x}", x)).rev().collect();
|
||||
// println!("{:x?}", read_out);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user