solidity/test/libyul/evmCodeTransform/stackReuse/function_params_and_retparams.yul

26 lines
532 B
Plaintext
Raw Normal View History

2021-03-09 13:53:10 +00:00
// 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
// ----
2021-09-15 15:01:40 +00:00
// /* "":212:254 */
// stop
// /* "":218:252 */
// tag_1:
// pop
// pop
// pop
// pop
// /* "":247:248 */
// 0x00
// /* "":244:245 */
// 0x00
// /* "":218:252 */
// swap2
// jump // out