aboutsummaryrefslogtreecommitdiffstats
path: root/test/libyul/yulOptimizerTests/ssaAndBack/two_vars.yul
diff options
context:
space:
mode:
Diffstat (limited to 'test/libyul/yulOptimizerTests/ssaAndBack/two_vars.yul')
-rw-r--r--test/libyul/yulOptimizerTests/ssaAndBack/two_vars.yul20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/libyul/yulOptimizerTests/ssaAndBack/two_vars.yul b/test/libyul/yulOptimizerTests/ssaAndBack/two_vars.yul
new file mode 100644
index 00000000..9f2a046e
--- /dev/null
+++ b/test/libyul/yulOptimizerTests/ssaAndBack/two_vars.yul
@@ -0,0 +1,20 @@
+{
+ let a := mload(0)
+ let b := mload(a)
+ a := mload(b)
+ b := mload(a)
+ a := mload(b)
+ b := mload(a)
+ mstore(a, b)
+}
+// ----
+// ssaAndBack
+// {
+// let a_1 := mload(0)
+// let b_2 := mload(a_1)
+// let a_3 := mload(b_2)
+// let b_4 := mload(a_3)
+// let a_5 := mload(b_4)
+// let b_6 := mload(a_5)
+// mstore(a_5, b_6)
+// }