mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-03 06:13:07 +00:00
Merge pull request #664 from mir-protocol/fix_shift_propagation
Fix shift order in constant propagation
This commit is contained in:
commit
cf0de26ddf
@ -53,8 +53,8 @@ fn constant_propagation(code: &mut Vec<Item>) {
|
||||
"DIV" => Some(x.checked_div(y).unwrap_or(U256::zero())),
|
||||
"MOD" => Some(x.checked_rem(y).unwrap_or(U256::zero())),
|
||||
"EXP" => Some(x.overflowing_pow(y).0),
|
||||
"SHL" => Some(x << y),
|
||||
"SHR" => Some(x >> y),
|
||||
"SHL" => Some(y << x),
|
||||
"SHR" => Some(y >> x),
|
||||
"AND" => Some(x & y),
|
||||
"OR" => Some(x | y),
|
||||
"XOR" => Some(x ^ y),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user