summaryrefslogtreecommitdiff
path: root/test/wasm2js/func_ptrs.2asm.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2023-10-23 12:31:10 -0700
committerGitHub <noreply@github.com>2023-10-23 12:31:10 -0700
commit2134d9a32b89b5b30121956bbfb070b8c9ee2bd5 (patch)
tree02644ac9a217b472420d119ab9f937ed845417c1 /test/wasm2js/func_ptrs.2asm.js
parent68ff52b278acb95201967709640733a05d6a683a (diff)
downloadbinaryen-2134d9a32b89b5b30121956bbfb070b8c9ee2bd5.tar.gz
binaryen-2134d9a32b89b5b30121956bbfb070b8c9ee2bd5.tar.bz2
binaryen-2134d9a32b89b5b30121956bbfb070b8c9ee2bd5.zip
Partially revert #6026 (#6043)
That optimization uncovered some LLVM and Binaryen bugs.
Diffstat (limited to 'test/wasm2js/func_ptrs.2asm.js')
-rw-r--r--test/wasm2js/func_ptrs.2asm.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/wasm2js/func_ptrs.2asm.js b/test/wasm2js/func_ptrs.2asm.js
index ccd220152..4b7c4fd44 100644
--- a/test/wasm2js/func_ptrs.2asm.js
+++ b/test/wasm2js/func_ptrs.2asm.js
@@ -27,11 +27,16 @@ function asmFunc(imports) {
return a - 2 | 0 | 0;
}
+ function $6($0) {
+ $0 = $0 | 0;
+ print($0 | 0);
+ }
+
return {
"one": $3,
"two": $4,
"three": $5,
- "four": print
+ "four": $6
};
}