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

24 lines
484 B
Plaintext
Raw Normal View History

2019-03-14 15:30:11 +00:00
{
let a := shl(299, calldataload(0))
let b := shr(299, calldataload(1))
let c := shl(255, calldataload(2))
let d := shr(255, calldataload(3))
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
// {
// let a := 0
// let b := 0
2020-08-03 20:42:39 +00:00
// let _8 := calldataload(2)
// let _9 := 255
// let c := shl(_9, _8)
// let d := shr(_9, calldataload(3))
// sstore(a, b)
// sstore(c, d)
2019-03-14 15:30:11 +00:00
// }