summaryrefslogtreecommitdiff
path: root/test/llvm_autogenerated/userstack.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/llvm_autogenerated/userstack.wast')
-rw-r--r--test/llvm_autogenerated/userstack.wast74
1 files changed, 74 insertions, 0 deletions
diff --git a/test/llvm_autogenerated/userstack.wast b/test/llvm_autogenerated/userstack.wast
index df8788cfb..a67c49b40 100644
--- a/test/llvm_autogenerated/userstack.wast
+++ b/test/llvm_autogenerated/userstack.wast
@@ -1,8 +1,11 @@
(module
(memory 0 4294967295)
+ (type $FUNCSIG$vi (func (param i32)))
+ (import $ext_func "env" "ext_func" (param i32))
(export "alloca32" $alloca32)
(export "alloca3264" $alloca3264)
(export "allocarray" $allocarray)
+ (export "non_mem_use" $non_mem_use)
(export "allocarray_inbounds" $allocarray_inbounds)
(export "dynamic_alloca" $dynamic_alloca)
(func $alloca32
@@ -202,6 +205,77 @@
)
)
)
+ (func $non_mem_use
+ (local $$0 i32)
+ (local $$1 i32)
+ (local $$2 i32)
+ (local $$3 i32)
+ (local $$4 i32)
+ (block $fake_return_waka123
+ (block
+ (set_local $$0
+ (i32.const 1)
+ )
+ (set_local $$0
+ (i32.load align=4
+ (get_local $$0)
+ )
+ )
+ (set_local $$1
+ (i32.const 16)
+ )
+ (set_local $$4
+ (i32.sub
+ (get_local $$0)
+ (get_local $$1)
+ )
+ )
+ (set_local $$1
+ (i32.const 1)
+ )
+ (set_local $$4
+ (i32.store align=4
+ (get_local $$1)
+ (get_local $$4)
+ )
+ )
+ (set_local $$3
+ (i32.const 8)
+ )
+ (set_local $$3
+ (i32.add
+ (get_local $$4)
+ (get_local $$3)
+ )
+ )
+ (call_import $ext_func
+ (get_local $$3)
+ )
+ (call_import $ext_func
+ (get_local $$4)
+ )
+ (set_local $$2
+ (i32.const 16)
+ )
+ (set_local $$4
+ (i32.add
+ (get_local $$4)
+ (get_local $$2)
+ )
+ )
+ (set_local $$2
+ (i32.const 1)
+ )
+ (set_local $$4
+ (i32.store align=4
+ (get_local $$2)
+ (get_local $$4)
+ )
+ )
+ (br $fake_return_waka123)
+ )
+ )
+ )
(func $allocarray_inbounds
(local $$0 i32)
(local $$1 i32)