solidity/test/libyul/evmCodeTransform/stackReuse/function_params_and_retparams.yul
Daniel Kirchner 7e061db811 Update tests.
2021-09-14 15:54:24 +02:00

26 lines
532 B
Plaintext

// This does not re-use the parameters for the return parameters
// We do not expect parameters to be fully unused, so the stack
// layout for a function is still fixed, even though parameters
// can be re-used.
{
function f(a, b, c, d) -> x, y { }
}
// ====
// stackOptimization: true
// ----
// /* "":212:254 */
// stop
// /* "":218:252 */
// tag_1:
// pop
// pop
// pop
// pop
// /* "":247:248 */
// 0x00
// /* "":244:245 */
// 0x00
// /* "":218:252 */
// swap2
// jump // out