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

26 lines
610 B
Plaintext
Raw Permalink 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)
2020-08-03 20:42:39 +00:00
sstore(a, b)
sstore(c, d)
2019-03-14 15:30:11 +00:00
}
// ====
// EVMVersion: >=constantinople
2019-03-14 15:30:11 +00:00
// ----
// step: expressionSimplifier
//
2019-03-14 15:30:11 +00:00
// {
2021-11-09 12:25:25 +00:00
// {
// let _2 := calldataload(0)
// let _5 := 0xff
// let a := shr(248, _2)
// let b := shr(248, _2)
// let c := and(shr(249, _2), 0xfa)
// let d := and(shr(247, _2), _5)
// sstore(a, b)
// sstore(c, d)
// }
2019-03-14 15:30:11 +00:00
// }