Add test cases for return slot allocation.

This commit is contained in:
Daniel Kirchner
2021-04-06 13:31:22 +02:00
parent 5433a640fb
commit 04a051d380
10 changed files with 218 additions and 0 deletions
@@ -0,0 +1,27 @@
{
/* function f(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20) -> x {
mstore(0x0100, a1)
mstore(0x0120, a2)
mstore(0x0140, a3)
mstore(0x0160, a4)
mstore(0x0180, a5)
mstore(0x01A0, a6)
mstore(0x01C0, a7)
mstore(0x01E0, a8)
mstore(0x0200, a9)
mstore(0x0220, a10)
mstore(0x0240, a11)
mstore(0x0260, a12)
mstore(0x0280, a13)
mstore(0x02A0, a14)
mstore(0x02C0, a15)
mstore(0x02E0, a16)
mstore(0x0300, a17)
mstore(0x0320, a18)
mstore(0x0340, a19)
x := a20
}*/
}
// ====
// stackOptimization: true
// ----