summaryrefslogtreecommitdiff
path: root/test/passes/post-emscripten_pass-arg=stack-pointer@1234.wast
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2020-05-01 15:18:39 -0400
committerGitHub <noreply@github.com>2020-05-01 12:18:39 -0700
commit632351df3b92b9353b600c438a3e106ad4e86182 (patch)
tree08a37a5a26a29654ad311eea6419c4cb30fc8bae /test/passes/post-emscripten_pass-arg=stack-pointer@1234.wast
parent107e2fd4814be2855cf111596f5dd69c026da55d (diff)
downloadbinaryen-632351df3b92b9353b600c438a3e106ad4e86182.tar.gz
binaryen-632351df3b92b9353b600c438a3e106ad4e86182.tar.bz2
binaryen-632351df3b92b9353b600c438a3e106ad4e86182.zip
Add stack-pointer argument to post-emscripten pass. (#2823)
This allows emscripten to statically set the initial value of the stack pointer. Should allow use to avoid doing it dynamically at startup: https://github.com/emscripten-core/emscripten/pull/11031
Diffstat (limited to 'test/passes/post-emscripten_pass-arg=stack-pointer@1234.wast')
-rw-r--r--test/passes/post-emscripten_pass-arg=stack-pointer@1234.wast4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/passes/post-emscripten_pass-arg=stack-pointer@1234.wast b/test/passes/post-emscripten_pass-arg=stack-pointer@1234.wast
new file mode 100644
index 000000000..c96bbf4f9
--- /dev/null
+++ b/test/passes/post-emscripten_pass-arg=stack-pointer@1234.wast
@@ -0,0 +1,4 @@
+(module
+ (import "env" "not_stack" (global i32))
+ (global $should_be_stack_pointer (mut i32) (i32.const 2))
+)