summaryrefslogtreecommitdiff
path: root/test/passes/optimize-instructions_all-features.txt
diff options
context:
space:
mode:
authorMax Graey <maxgraey@gmail.com>2020-08-23 18:20:22 +0300
committerGitHub <noreply@github.com>2020-08-23 08:20:22 -0700
commit1f439f7227f2d1f2d15d058ec5acdb41556cb9bb (patch)
treee6c2a7ec174923713ca0cda6fc0daa0efa83b768 /test/passes/optimize-instructions_all-features.txt
parentfa83375d2bed8802de67e1689e056209561636e6 (diff)
downloadbinaryen-1f439f7227f2d1f2d15d058ec5acdb41556cb9bb.tar.gz
binaryen-1f439f7227f2d1f2d15d058ec5acdb41556cb9bb.tar.bz2
binaryen-1f439f7227f2d1f2d15d058ec5acdb41556cb9bb.zip
OptimizeInstructions on memory.copy: check size for side effect as well (#3072)
Fix issue found by fuzzer: #3038 (comment)
Diffstat (limited to 'test/passes/optimize-instructions_all-features.txt')
-rw-r--r--test/passes/optimize-instructions_all-features.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/passes/optimize-instructions_all-features.txt b/test/passes/optimize-instructions_all-features.txt
index b97106f2d..509a7825d 100644
--- a/test/passes/optimize-instructions_all-features.txt
+++ b/test/passes/optimize-instructions_all-features.txt
@@ -3793,6 +3793,13 @@
(local.get $src)
(local.get $sz)
)
+ (memory.copy
+ (i32.const 0)
+ (i32.const 0)
+ (i32.load
+ (i32.const 3)
+ )
+ )
)
)
(module