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

28 lines
446 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)
}
// ----
// step: ssaAndBack
//
// {
2021-11-09 12:25:25 +00:00
// {
// let a := mload(0)
// switch mload(1)
// case 0 { a := mload(3) }
// default { a := mload(6) }
// mstore(a, 0)
// }
// }