aboutsummaryrefslogtreecommitdiffstats
path: root/test/libjulia/yulOptimizerTests/rematerialiser/expression.yul
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-10-11 23:59:45 +0800
committerchriseth <chris@ethereum.org>2018-10-12 00:41:26 +0800
commit6dfd0adc0ba5673071f280ee5f68806f5aeecebd (patch)
tree7398f2f4dd497b254e5eac001f4316985b63daa7 /test/libjulia/yulOptimizerTests/rematerialiser/expression.yul
parent49958e4720528e4ba325dfc0892888f319649aa9 (diff)
downloaddexon-solidity-6dfd0adc0ba5673071f280ee5f68806f5aeecebd.tar.gz
dexon-solidity-6dfd0adc0ba5673071f280ee5f68806f5aeecebd.tar.zst
dexon-solidity-6dfd0adc0ba5673071f280ee5f68806f5aeecebd.zip
Move rematerialiser tests.
Diffstat (limited to 'test/libjulia/yulOptimizerTests/rematerialiser/expression.yul')
-rw-r--r--test/libjulia/yulOptimizerTests/rematerialiser/expression.yul10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/libjulia/yulOptimizerTests/rematerialiser/expression.yul b/test/libjulia/yulOptimizerTests/rematerialiser/expression.yul
new file mode 100644
index 00000000..a801677d
--- /dev/null
+++ b/test/libjulia/yulOptimizerTests/rematerialiser/expression.yul
@@ -0,0 +1,10 @@
+{
+ let a := add(mul(calldatasize(), 2), number())
+ let b := add(a, a)
+}
+// ----
+// rematerialiser
+// {
+// let a := add(mul(calldatasize(), 2), number())
+// let b := add(add(mul(calldatasize(), 2), number()), add(mul(calldatasize(), 2), number()))
+// }