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.wast491
1 files changed, 0 insertions, 491 deletions
diff --git a/test/llvm_autogenerated/userstack.wast b/test/llvm_autogenerated/userstack.wast
deleted file mode 100644
index eacae6a0b..000000000
--- a/test/llvm_autogenerated/userstack.wast
+++ /dev/null
@@ -1,491 +0,0 @@
-(module
- (type $FUNCSIG$vi (func (param i32)))
- (import "env" "ext_func" (func $ext_func (param i32)))
- (import "env" "ext_func_i32" (func $ext_func_i32 (param i32)))
- (import "env" "use_i8_star" (func $use_i8_star (param i32)))
- (import "env" "memory" (memory $0 1))
- (table 0 funcref)
- (data (i32.const 4) "\10\04\00\00")
- (export "alloca32" (func $alloca32))
- (export "alloca3264" (func $alloca3264))
- (export "allocarray" (func $allocarray))
- (export "non_mem_use" (func $non_mem_use))
- (export "allocarray_inbounds" (func $allocarray_inbounds))
- (export "dynamic_alloca" (func $dynamic_alloca))
- (export "dynamic_alloca_redzone" (func $dynamic_alloca_redzone))
- (export "dynamic_static_alloca" (func $dynamic_static_alloca))
- (export "llvm_stack_builtins" (func $llvm_stack_builtins))
- (export "dynamic_alloca_nouse" (func $dynamic_alloca_nouse))
- (export "copytoreg_fi" (func $copytoreg_fi))
- (export "frameaddress_0" (func $frameaddress_0))
- (export "frameaddress_1" (func $frameaddress_1))
- (export "inline_asm" (func $inline_asm))
- (export "stackSave" (func $stackSave))
- (export "stackAlloc" (func $stackAlloc))
- (export "stackRestore" (func $stackRestore))
- (func $alloca32 (; 3 ;)
- (local $0 i32)
- (i32.store offset=4
- (i32.const 0)
- (local.tee $0
- (i32.sub
- (i32.load offset=4
- (i32.const 0)
- )
- (i32.const 16)
- )
- )
- )
- (i32.store offset=12
- (local.get $0)
- (i32.const 0)
- )
- (i32.store offset=4
- (i32.const 0)
- (i32.add
- (local.get $0)
- (i32.const 16)
- )
- )
- (return)
- )
- (func $alloca3264 (; 4 ;)
- (local $0 i32)
- (i32.store offset=12
- (local.tee $0
- (i32.sub
- (i32.load offset=4
- (i32.const 0)
- )
- (i32.const 16)
- )
- )
- (i32.const 0)
- )
- (i64.store
- (local.get $0)
- (i64.const 0)
- )
- (return)
- )
- (func $allocarray (; 5 ;)
- (local $0 i32)
- (i32.store offset=4
- (i32.const 0)
- (local.tee $0
- (i32.sub
- (i32.load offset=4
- (i32.const 0)
- )
- (i32.const 144)
- )
- )
- )
- (i32.store
- (i32.add
- (local.get $0)
- (i32.const 24)
- )
- (i32.const 1)
- )
- (i32.store offset=12
- (local.get $0)
- (i32.const 1)
- )
- (i32.store offset=4
- (i32.const 0)
- (i32.add
- (local.get $0)
- (i32.const 144)
- )
- )
- (return)
- )
- (func $non_mem_use (; 6 ;) (param $0 i32)
- (local $1 i32)
- (i32.store offset=4
- (i32.const 0)
- (local.tee $1
- (i32.sub
- (i32.load offset=4
- (i32.const 0)
- )
- (i32.const 48)
- )
- )
- )
- (call $ext_func
- (i32.add
- (local.get $1)
- (i32.const 8)
- )
- )
- (call $ext_func
- (local.get $1)
- )
- (i32.store
- (local.get $0)
- (i32.add
- (local.get $1)
- (i32.const 16)
- )
- )
- (i32.store offset=4
- (i32.const 0)
- (i32.add
- (local.get $1)
- (i32.const 48)
- )
- )
- (return)
- )
- (func $allocarray_inbounds (; 7 ;)
- (local $0 i32)
- (i32.store offset=4
- (i32.const 0)
- (local.tee $0
- (i32.sub
- (i32.load offset=4
- (i32.const 0)
- )
- (i32.const 32)
- )
- )
- )
- (i32.store offset=24
- (local.get $0)
- (i32.const 1)
- )
- (i32.store offset=12
- (local.get $0)
- (i32.const 1)
- )
- (call $ext_func
- (i32.const 0)
- )
- (i32.store offset=4
- (i32.const 0)
- (i32.add
- (local.get $0)
- (i32.const 32)
- )
- )
- (return)
- )
- (func $dynamic_alloca (; 8 ;) (param $0 i32)
- (local $1 i32)
- (i32.store offset=4
- (i32.const 0)
- (local.tee $0
- (i32.sub
- (local.tee $1
- (i32.load offset=4
- (i32.const 0)
- )
- )
- (i32.and
- (i32.add
- (i32.shl
- (local.get $0)
- (i32.const 2)
- )
- (i32.const 15)
- )
- (i32.const -16)
- )
- )
- )
- )
- (call $ext_func_i32
- (local.get $0)
- )
- (i32.store offset=4
- (i32.const 0)
- (local.get $1)
- )
- (return)
- )
- (func $dynamic_alloca_redzone (; 9 ;) (param $0 i32)
- (local $1 i32)
- (drop
- (local.tee $1
- (i32.load offset=4
- (i32.const 0)
- )
- )
- )
- (drop
- (local.tee $0
- (i32.sub
- (local.get $1)
- (i32.and
- (i32.add
- (i32.shl
- (local.get $0)
- (i32.const 2)
- )
- (i32.const 15)
- )
- (i32.const -16)
- )
- )
- )
- )
- (i32.store
- (local.get $0)
- (i32.const 0)
- )
- (return)
- )
- (func $dynamic_static_alloca (; 10 ;) (param $0 i32)
- (local $1 i32)
- (local $2 i32)
- (local $3 i32)
- (i32.store offset=4
- (i32.const 0)
- (local.tee $2
- (i32.sub
- (i32.load offset=4
- (i32.const 0)
- )
- (i32.const 16)
- )
- )
- )
- (i32.store offset=12
- (local.tee $1
- (local.get $2)
- )
- (i32.const 101)
- )
- (i32.store offset=4
- (i32.const 0)
- (local.tee $3
- (local.tee $2
- (i32.sub
- (local.get $2)
- (local.tee $0
- (i32.and
- (i32.add
- (i32.shl
- (local.get $0)
- (i32.const 2)
- )
- (i32.const 15)
- )
- (i32.const -16)
- )
- )
- )
- )
- )
- )
- (i32.store offset=12
- (local.get $1)
- (i32.const 102)
- )
- (i32.store
- (local.get $2)
- (i32.const 103)
- )
- (i32.store offset=4
- (i32.const 0)
- (local.tee $0
- (i32.sub
- (local.get $3)
- (local.get $0)
- )
- )
- )
- (i32.store offset=12
- (local.get $1)
- (i32.const 104)
- )
- (i32.store
- (local.get $2)
- (i32.const 105)
- )
- (i32.store
- (local.get $0)
- (i32.const 106)
- )
- (i32.store offset=4
- (i32.const 0)
- (i32.add
- (local.get $1)
- (i32.const 16)
- )
- )
- (return)
- )
- (func $llvm_stack_builtins (; 11 ;) (param $0 i32)
- (local $1 i32)
- (local $2 i32)
- (local $3 i32)
- (local.set $2
- (local.tee $3
- (i32.load offset=4
- (i32.const 0)
- )
- )
- )
- (local.set $1
- (local.get $3)
- )
- (i32.store offset=4
- (i32.const 0)
- (i32.sub
- (local.get $3)
- (i32.and
- (i32.add
- (i32.shl
- (local.get $0)
- (i32.const 2)
- )
- (i32.const 15)
- )
- (i32.const -16)
- )
- )
- )
- (drop
- (local.get $1)
- )
- (i32.store offset=4
- (i32.const 0)
- (local.get $2)
- )
- (return)
- )
- (func $dynamic_alloca_nouse (; 12 ;) (param $0 i32)
- (local $1 i32)
- (local $2 i32)
- (local.set $1
- (local.tee $2
- (i32.load offset=4
- (i32.const 0)
- )
- )
- )
- (i32.store offset=4
- (i32.const 0)
- (i32.sub
- (local.get $2)
- (i32.and
- (i32.add
- (i32.shl
- (local.get $0)
- (i32.const 2)
- )
- (i32.const 15)
- )
- (i32.const -16)
- )
- )
- )
- (i32.store offset=4
- (i32.const 0)
- (local.get $1)
- )
- (return)
- )
- (func $copytoreg_fi (; 13 ;) (param $0 i32) (param $1 i32)
- (local $2 i32)
- (local.set $2
- (i32.add
- (i32.sub
- (i32.load offset=4
- (i32.const 0)
- )
- (i32.const 16)
- )
- (i32.const 12)
- )
- )
- (local.set $0
- (i32.and
- (local.get $0)
- (i32.const 1)
- )
- )
- (loop $label$0
- (i32.store
- (local.get $2)
- (i32.const 1)
- )
- (local.set $2
- (local.get $1)
- )
- (br_if $label$0
- (local.get $0)
- )
- )
- (return)
- )
- (func $frameaddress_0 (; 14 ;)
- (local $0 i32)
- (call $use_i8_star
- (local.tee $0
- (i32.load offset=4
- (i32.const 0)
- )
- )
- )
- (i32.store offset=4
- (i32.const 0)
- (local.get $0)
- )
- (return)
- )
- (func $frameaddress_1 (; 15 ;)
- (call $use_i8_star
- (i32.const 0)
- )
- (return)
- )
- (func $inline_asm (; 16 ;)
- (local $0 i32)
- (local.set $0
- (i32.add
- (i32.sub
- (i32.load offset=4
- (i32.const 0)
- )
- (i32.const 16)
- )
- (i32.const 15)
- )
- )
- (return)
- )
- (func $stackSave (; 17 ;) (result i32)
- (i32.load offset=4
- (i32.const 0)
- )
- )
- (func $stackAlloc (; 18 ;) (param $0 i32) (result i32)
- (local $1 i32)
- (i32.store offset=4
- (i32.const 0)
- (local.tee $1
- (i32.and
- (i32.sub
- (i32.load offset=4
- (i32.const 0)
- )
- (local.get $0)
- )
- (i32.const -16)
- )
- )
- )
- (local.get $1)
- )
- (func $stackRestore (; 19 ;) (param $0 i32)
- (i32.store offset=4
- (i32.const 0)
- (local.get $0)
- )
- )
-)
-;; METADATA: { "asmConsts": {},"staticBump": 1040, "initializers": [], "declares": ["ext_func","ext_func_i32","use_i8_star"], "externs": [], "implementedFunctions": ["_alloca32","_alloca3264","_allocarray","_non_mem_use","_allocarray_inbounds","_dynamic_alloca","_dynamic_alloca_redzone","_dynamic_static_alloca","_llvm_stack_builtins","_dynamic_alloca_nouse","_copytoreg_fi","_frameaddress_0","_frameaddress_1","_inline_asm","_stackSave","_stackAlloc","_stackRestore"], "exports": ["alloca32","alloca3264","allocarray","non_mem_use","allocarray_inbounds","dynamic_alloca","dynamic_alloca_redzone","dynamic_static_alloca","llvm_stack_builtins","dynamic_alloca_nouse","copytoreg_fi","frameaddress_0","frameaddress_1","inline_asm","stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] }