solidity/test/libyul/evmCodeTransform/stackReuse/reuse_slots_function.yul
Daniel Kirchner 2b7b78ce42 Update tests.
2021-04-06 14:27:14 +02:00

38 lines
461 B
Plaintext

{
function f() -> x, y, z, t {}
let a, b, c, d := f() let x1 := 2 let y1 := 3 mstore(x1, a) mstore(y1, c)
}
// ====
// stackOptimization: true
// ----
// PUSH1 0xF
// JUMP
// JUMPDEST
// PUSH1 0x0
// PUSH1 0x0
// PUSH1 0x0
// PUSH1 0x0
// JUMPDEST
// SWAP4
// JUMP
// JUMPDEST
// PUSH1 0x15
// PUSH1 0x3
// JUMP
// JUMPDEST
// POP
// PUSH1 0x2
// SWAP2
// POP
// PUSH1 0x3
// DUP4
// DUP4
// MSTORE
// DUP2
// DUP2
// MSTORE
// POP
// POP
// POP
// POP