solidity/test/libyul/yulOptimizerTests/fullSuite/combine_shift_and_and_unsplit.yul

20 lines
426 B
Plaintext
Raw Normal View History

2020-08-03 20:42:39 +00:00
{
let x := calldataload(0)
// This checks that the expression simplifier
// does not modify unsplit expressions.
let a := and(0xff, shr(248, shl(248, shr(248, x))))
let b := shr(12, shl(8, and(x, 0xf0f0)))
sstore(a, b)
}
// ====
// EVMVersion: >byzantium
// ----
// step: fullSuite
//
// {
// {
// let x := calldataload(0)
// sstore(shr(248, x), and(shr(4, x), 3855))
// }
// }