solidity/test/libyul/yulOptimizerTests/expressionSimplifier/remove_redundant_shift_masking.yul

17 lines
476 B
Plaintext
Raw Normal View History

2019-03-14 15:30:11 +00:00
{
let a := and(0xff, shr(248, calldataload(0)))
let b := and(shr(248, calldataload(0)), 0xff)
let c := and(shr(249, calldataload(0)), 0xfa)
let d := and(shr(247, calldataload(0)), 0xff)
}
// ====
// EVMVersion: >byzantium
// step: expressionSimplifier
// ----
// {
// let a := shr(248, calldataload(0))
// let b := shr(248, calldataload(0))
// let c := and(shr(249, calldataload(0)), 0xfa)
// let d := and(shr(247, calldataload(0)), 0xff)
// }