solidity/test/libyul/yulOptimizerTests/ssaAndBack/multi_assign_switch.yul

26 lines
413 B
Plaintext
Raw Normal View History

{
let a := mload(0)
switch mload(1)
case 0 {
a := mload(1)
a := mload(2)
a := mload(3)
}
default {
a := mload(4)
a := mload(5)
a := mload(6)
}
mstore(a, 0)
}
2019-04-01 14:33:46 +00:00
// ====
// step: ssaAndBack
// ----
// {
// let a := mload(0)
// switch mload(1)
2019-05-13 16:52:08 +00:00
// case 0 { a := mload(3) }
// default { a := mload(6) }
// mstore(a, 0)
// }