mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Extract StackReuseCodegen tests.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
{ let a, b, c, d let x := 2 let y := 3 mstore(x, a) mstore(y, c) }
|
||||
// ====
|
||||
// stackOptimization: true
|
||||
// ----
|
||||
// PUSH1 0x0
|
||||
// PUSH1 0x0
|
||||
// PUSH1 0x0
|
||||
// PUSH1 0x0
|
||||
// POP
|
||||
// PUSH1 0x2
|
||||
// SWAP2
|
||||
// POP
|
||||
// PUSH1 0x3
|
||||
// DUP4
|
||||
// DUP4
|
||||
// MSTORE
|
||||
// DUP2
|
||||
// DUP2
|
||||
// MSTORE
|
||||
// POP
|
||||
// POP
|
||||
// POP
|
||||
// POP
|
||||
Reference in New Issue
Block a user