summaryrefslogtreecommitdiff
path: root/test/lld/shared_longjmp.wat.out
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2019-12-08 20:50:25 -0600
committerGitHub <noreply@github.com>2019-12-08 20:50:25 -0600
commit42b61e3c2e7851ed001bf26a7e1afab21d0cb38d (patch)
treeb86a0a10ec9ea1d4351e4500ff84f987894aaf8e /test/lld/shared_longjmp.wat.out
parentb232033385b025ba276423613fb67f644c0596ce (diff)
downloadbinaryen-42b61e3c2e7851ed001bf26a7e1afab21d0cb38d.tar.gz
binaryen-42b61e3c2e7851ed001bf26a7e1afab21d0cb38d.tar.bz2
binaryen-42b61e3c2e7851ed001bf26a7e1afab21d0cb38d.zip
Use wat over wast for text format filenames (#2518)
Diffstat (limited to 'test/lld/shared_longjmp.wat.out')
-rw-r--r--test/lld/shared_longjmp.wat.out213
1 files changed, 213 insertions, 0 deletions
diff --git a/test/lld/shared_longjmp.wat.out b/test/lld/shared_longjmp.wat.out
new file mode 100644
index 000000000..c6bdf1c17
--- /dev/null
+++ b/test/lld/shared_longjmp.wat.out
@@ -0,0 +1,213 @@
+(module
+ (type $0 (func (param i32) (result i32)))
+ (type $1 (func (param i32 i32 i32 i32) (result i32)))
+ (type $2 (func (result i32)))
+ (type $3 (func (param i32 i32)))
+ (type $4 (func (param i32 i32 i32)))
+ (type $5 (func (param i32 i32 i32) (result i32)))
+ (type $6 (func (param i32)))
+ (type $7 (func))
+ (type $FUNCSIG$vii (func (param i32 i32)))
+ (type $FUNCSIG$i (func (result i32)))
+ (import "env" "memory" (memory $0 0))
+ (data (global.get $gimport$2) "\00\00\00\00\00\00\00\00")
+ (import "env" "table" (table $0 0 funcref))
+ (import "env" "__memory_base" (global $gimport$2 i32))
+ (import "env" "__table_base" (global $gimport$3 i32))
+ (import "env" "malloc" (func $malloc (param i32) (result i32)))
+ (import "env" "saveSetjmp" (func $saveSetjmp (param i32 i32 i32 i32) (result i32)))
+ (import "env" "getTempRet0" (func $getTempRet0 (result i32)))
+ (import "env" "invoke_vii" (func $invoke_vii (param i32 i32 i32)))
+ (import "env" "testSetjmp" (func $testSetjmp (param i32 i32 i32) (result i32)))
+ (import "env" "setTempRet0" (func $setTempRet0 (param i32)))
+ (import "env" "free" (func $free (param i32)))
+ (import "env" "emscripten_longjmp" (func $emscripten_longjmp (param i32 i32)))
+ (import "env" "g$__THREW__" (func $g$__THREW__ (result i32)))
+ (import "env" "g$__threwValue" (func $g$__threwValue (result i32)))
+ (import "env" "fp$emscripten_longjmp$vii" (func $fp$emscripten_longjmp$vii (result i32)))
+ (global $gimport$13 (mut i32) (i32.const 0))
+ (global $gimport$14 (mut i32) (i32.const 0))
+ (global $gimport$15 (mut i32) (i32.const 0))
+ (global $global$0 i32 (i32.const 0))
+ (global $global$1 i32 (i32.const 4))
+ (export "_start" (func $_start))
+ (export "__THREW__" (global $global$0))
+ (export "__threwValue" (global $global$1))
+ (export "dynCall_vii" (func $dynCall_vii))
+ (export "__post_instantiate" (func $__post_instantiate))
+ (func $__wasm_call_ctors (; 11 ;) (type $7)
+ (call $__wasm_apply_relocs)
+ )
+ (func $__wasm_apply_relocs (; 12 ;) (type $7)
+ (nop)
+ )
+ (func $_start (; 13 ;) (type $7)
+ (local $0 i32)
+ (local $1 i32)
+ (local $2 i32)
+ (local $3 i32)
+ (i32.store
+ (local.tee $0
+ (call $malloc
+ (i32.const 40)
+ )
+ )
+ (i32.const 0)
+ )
+ (local.set $1
+ (call $saveSetjmp
+ (local.get $0)
+ (i32.const 1)
+ (local.get $0)
+ (i32.const 4)
+ )
+ )
+ (local.set $2
+ (call $getTempRet0)
+ )
+ (local.set $0
+ (i32.const 0)
+ )
+ (block $label$1
+ (block $label$2
+ (loop $label$3
+ (br_if $label$2
+ (local.get $0)
+ )
+ (i32.store
+ (local.tee $0
+ (global.get $gimport$13)
+ )
+ (i32.const 0)
+ )
+ (call $invoke_vii
+ (global.get $gimport$14)
+ (local.get $0)
+ (i32.const 1)
+ )
+ (local.set $3
+ (i32.load
+ (local.get $0)
+ )
+ )
+ (i32.store
+ (local.get $0)
+ (i32.const 0)
+ )
+ (local.set $0
+ (global.get $gimport$15)
+ )
+ (block $label$4
+ (br_if $label$4
+ (i32.eqz
+ (local.get $3)
+ )
+ )
+ (br_if $label$4
+ (i32.eqz
+ (local.tee $0
+ (i32.load
+ (local.get $0)
+ )
+ )
+ )
+ )
+ (br_if $label$1
+ (i32.eqz
+ (call $testSetjmp
+ (i32.load
+ (local.get $3)
+ )
+ (local.get $1)
+ (local.get $2)
+ )
+ )
+ )
+ (call $setTempRet0
+ (local.get $0)
+ )
+ )
+ (local.set $0
+ (call $getTempRet0)
+ )
+ (br $label$3)
+ )
+ )
+ (call $free
+ (local.get $1)
+ )
+ (return)
+ )
+ (call $emscripten_longjmp
+ (local.get $3)
+ (local.get $0)
+ )
+ (unreachable)
+ )
+ (func $dynCall_vii (; 14 ;) (param $fptr i32) (param $0 i32) (param $1 i32)
+ (call_indirect (type $FUNCSIG$vii)
+ (local.get $0)
+ (local.get $1)
+ (local.get $fptr)
+ )
+ )
+ (func $__post_instantiate (; 15 ;)
+ (call $__assign_got_enties)
+ (call $__wasm_call_ctors)
+ )
+ (func $__assign_got_enties (; 16 ;)
+ (global.set $gimport$13
+ (call $g$__THREW__)
+ )
+ (global.set $gimport$15
+ (call $g$__threwValue)
+ )
+ (global.set $gimport$14
+ (call $fp$emscripten_longjmp$vii)
+ )
+ )
+)
+(;
+--BEGIN METADATA --
+{
+ "staticBump": 0,
+ "tableSize": 0,
+ "declares": [
+ "malloc",
+ "saveSetjmp",
+ "getTempRet0",
+ "testSetjmp",
+ "setTempRet0",
+ "free",
+ "emscripten_longjmp",
+ "g$__THREW__",
+ "g$__threwValue",
+ "fp$emscripten_longjmp$vii"
+ ],
+ "externs": [
+ "___memory_base",
+ "___table_base"
+ ],
+ "implementedFunctions": [
+ "__start",
+ "_dynCall_vii",
+ "___post_instantiate"
+ ],
+ "exports": [
+ "_start",
+ "dynCall_vii",
+ "__post_instantiate"
+ ],
+ "namedGlobals": {
+ "__THREW__" : "0",
+ "__threwValue" : "4"
+ },
+ "invokeFuncs": [
+ "invoke_vii"
+ ],
+ "features": [
+ ],
+ "mainReadsParams": 0
+}
+-- END METADATA --
+;)