aboutsummaryrefslogtreecommitdiffstats
path: root/test/libyul/yulOptimizerTests
diff options
context:
space:
mode:
Diffstat (limited to 'test/libyul/yulOptimizerTests')
-rw-r--r--test/libyul/yulOptimizerTests/fullSuite/medium.yul4
-rw-r--r--test/libyul/yulOptimizerTests/unusedPruner/pop.yul8
2 files changed, 9 insertions, 3 deletions
diff --git a/test/libyul/yulOptimizerTests/fullSuite/medium.yul b/test/libyul/yulOptimizerTests/fullSuite/medium.yul
index 47812fa8..deb02068 100644
--- a/test/libyul/yulOptimizerTests/fullSuite/medium.yul
+++ b/test/libyul/yulOptimizerTests/fullSuite/medium.yul
@@ -16,9 +16,7 @@
// {
// let _18 := 0x20
// let allocate__7 := 0x40
-// let allocate_p_12 := mload(allocate__7)
-// mstore(allocate__7, add(allocate_p_12, _18))
-// pop(allocate_p_12)
+// mstore(allocate__7, add(mload(allocate__7), _18))
// let allocate_p_12_31 := mload(allocate__7)
// mstore(allocate__7, add(allocate_p_12_31, allocate__7))
// mstore(add(allocate_p_12_31, 96), 2)
diff --git a/test/libyul/yulOptimizerTests/unusedPruner/pop.yul b/test/libyul/yulOptimizerTests/unusedPruner/pop.yul
new file mode 100644
index 00000000..542070f9
--- /dev/null
+++ b/test/libyul/yulOptimizerTests/unusedPruner/pop.yul
@@ -0,0 +1,8 @@
+{
+ let a := 1
+ pop(a)
+}
+// ----
+// unusedPruner
+// {
+// }