solidity/test/libyul/yulOptimizerTests/loadResolver/second_store.yul
Daniel Kirchner 10618188dd Update tests.
2021-11-09 14:34:05 +01:00

22 lines
436 B
Plaintext

{
let x := calldataload(1)
sstore(x, 7)
sstore(calldataload(0), 6)
// We cannot replace this because we do not know
// if the two slots are different.
mstore(0, sload(x))
}
// ----
// step: loadResolver
//
// {
// {
// let x := calldataload(1)
// sstore(x, 7)
// let _3 := 6
// let _4 := 0
// sstore(calldataload(_4), _3)
// mstore(_4, sload(x))
// }
// }