summaryrefslogtreecommitdiff
path: root/test/dot_s
diff options
context:
space:
mode:
Diffstat (limited to 'test/dot_s')
-rw-r--r--test/dot_s/alias.wast3
-rw-r--r--test/dot_s/alternate-lcomm.wast3
-rw-r--r--test/dot_s/asm_const.wast3
-rw-r--r--test/dot_s/basics.wast3
-rw-r--r--test/dot_s/bcp-1.wast3
-rw-r--r--test/dot_s/data-offset-folding.wast3
-rw-r--r--test/dot_s/debug.wast3
-rw-r--r--test/dot_s/dso_handle.wast3
-rw-r--r--test/dot_s/dyncall.wast3
-rw-r--r--test/dot_s/exit.wast3
-rw-r--r--test/dot_s/export_malloc_free.wast3
-rw-r--r--test/dot_s/fix_em_ehsjlj_names.wast3
-rw-r--r--test/dot_s/function-data-sections.wast3
-rw-r--r--test/dot_s/hostFinalize.wast3
-rw-r--r--test/dot_s/indidx.wast3
-rw-r--r--test/dot_s/indirect-import.wast3
-rw-r--r--test/dot_s/initializers.wast3
-rw-r--r--test/dot_s/lcomm-in-text-segment.wast3
-rw-r--r--test/dot_s/local_align.wast3
-rw-r--r--test/dot_s/macClangMetaData.wast3
-rw-r--r--test/dot_s/memops.wast3
-rw-r--r--test/dot_s/minimal.wast3
-rw-r--r--test/dot_s/permute.wast3
-rw-r--r--test/dot_s/relocation.wast3
-rw-r--r--test/dot_s/return.wast3
-rw-r--r--test/dot_s/start_main0.wast3
-rw-r--r--test/dot_s/start_main2.wast3
-rw-r--r--test/dot_s/symbolic-offset.wast3
-rw-r--r--test/dot_s/text_before_type.wast3
-rw-r--r--test/dot_s/unreachable_blocks.wast3
-rw-r--r--test/dot_s/visibilities.wast3
31 files changed, 31 insertions, 62 deletions
diff --git a/test/dot_s/alias.wast b/test/dot_s/alias.wast
index 1f450fa57..05e36f1d1 100644
--- a/test/dot_s/alias.wast
+++ b/test/dot_s/alias.wast
@@ -1,10 +1,9 @@
(module
(type $FUNCSIG$v (func))
+ (import "env" "memory" (memory $0 1))
(table 2 2 anyfunc)
(elem (i32.const 0) $__wasm_nullptr $__exit)
- (memory $0 1)
(data (i32.const 16) "\d2\04\00\00\00\00\00\00)\t\00\00")
- (export "memory" (memory $0))
(export "__exit" (func $__exit))
(export "__needs_exit" (func $__needs_exit))
(export "dynCall_v" (func $dynCall_v))
diff --git a/test/dot_s/alternate-lcomm.wast b/test/dot_s/alternate-lcomm.wast
index c380944ab..aab4adc09 100644
--- a/test/dot_s/alternate-lcomm.wast
+++ b/test/dot_s/alternate-lcomm.wast
@@ -1,6 +1,5 @@
(module
+ (import "env" "memory" (memory $0 1))
(table 0 anyfunc)
- (memory $0 1)
- (export "memory" (memory $0))
)
;; METADATA: { "asmConsts": {},"staticBump": 16, "initializers": [] }
diff --git a/test/dot_s/asm_const.wast b/test/dot_s/asm_const.wast
index 4edc6c476..c9c8c638d 100644
--- a/test/dot_s/asm_const.wast
+++ b/test/dot_s/asm_const.wast
@@ -1,10 +1,9 @@
(module
(type $FUNCSIG$vi (func (param i32)))
+ (import "env" "memory" (memory $0 1))
(import "env" "emscripten_asm_const_vi" (func $emscripten_asm_const_vi (param i32)))
(table 0 anyfunc)
- (memory $0 1)
(data (i32.const 16) "{ Module.print(\"hello, world!\"); }\00")
- (export "memory" (memory $0))
(export "main" (func $main))
(func $main (result i32)
(call $emscripten_asm_const_vi
diff --git a/test/dot_s/basics.wast b/test/dot_s/basics.wast
index 3b539fa11..5482fd469 100644
--- a/test/dot_s/basics.wast
+++ b/test/dot_s/basics.wast
@@ -3,13 +3,12 @@
(type $FUNCSIG$v (func))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(import "env" "puts" (func $puts (param i32)))
+ (import "env" "memory" (memory $0 1))
(table 2 2 anyfunc)
(elem (i32.const 0) $__wasm_nullptr $main)
- (memory $0 1)
(data (i32.const 16) "hello, world!\n\00")
(data (i32.const 32) "vcq")
(data (i32.const 48) "\16\00\00\00")
- (export "memory" (memory $0))
(export "main" (func $main))
(export "dynCall_iii" (func $dynCall_iii))
(func $main (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
diff --git a/test/dot_s/bcp-1.wast b/test/dot_s/bcp-1.wast
index 5529ce62d..eb1560fa1 100644
--- a/test/dot_s/bcp-1.wast
+++ b/test/dot_s/bcp-1.wast
@@ -5,9 +5,9 @@
(type $FUNCSIG$vi (func (param i32)))
(import "env" "abort" (func $abort))
(import "env" "exit" (func $exit (param i32)))
+ (import "env" "memory" (memory $0 1))
(table 18 18 anyfunc)
(elem (i32.const 0) $__wasm_nullptr $bad0 $bad1 $bad5 $bad7 $bad8 $bad10 $bad2 $bad3 $bad6 $bad4 $bad9 $good0 $good1 $good2 $opt0 $opt1 $opt2)
- (memory $0 1)
(data (i32.const 16) "\01\00\00\00\02\00\00\00\03\00\00\00\04\00\00\00\05\00\00\00\06\00\00\00")
(data (i32.const 40) "\07\00\00\00\08\00\00\00\t\00\00\00")
(data (i32.const 52) "\n\00\00\00\0b\00\00\00")
@@ -15,7 +15,6 @@
(data (i32.const 72) "\0f\00\00\00\10\00\00\00\11\00\00\00")
(data (i32.const 96) "hi\00")
(data (i32.const 100) "\00\00\00\00")
- (export "memory" (memory $0))
(export "bad0" (func $bad0))
(export "bad1" (func $bad1))
(export "bad2" (func $bad2))
diff --git a/test/dot_s/data-offset-folding.wast b/test/dot_s/data-offset-folding.wast
index 9c179a112..e4e753f59 100644
--- a/test/dot_s/data-offset-folding.wast
+++ b/test/dot_s/data-offset-folding.wast
@@ -1,8 +1,7 @@
(module
+ (import "env" "memory" (memory $0 1))
(table 0 anyfunc)
- (memory $0 1)
(data (i32.const 12) "\00\00\00\00")
(data (i32.const 416) "`\00\00\00")
- (export "memory" (memory $0))
)
;; METADATA: { "asmConsts": {},"staticBump": 420, "initializers": [] }
diff --git a/test/dot_s/debug.wast b/test/dot_s/debug.wast
index 0d96c92c7..921a2a4d6 100644
--- a/test/dot_s/debug.wast
+++ b/test/dot_s/debug.wast
@@ -1,7 +1,6 @@
(module
+ (import "env" "memory" (memory $0 1))
(table 0 anyfunc)
- (memory $0 1)
- (export "memory" (memory $0))
(export "fib" (func $fib))
(func $fib (param $0 i32) (result i32)
(local $1 i32)
diff --git a/test/dot_s/dso_handle.wast b/test/dot_s/dso_handle.wast
index e75d11410..673ec4d3e 100644
--- a/test/dot_s/dso_handle.wast
+++ b/test/dot_s/dso_handle.wast
@@ -1,7 +1,6 @@
(module
+ (import "env" "memory" (memory $0 1))
(table 0 anyfunc)
- (memory $0 1)
- (export "memory" (memory $0))
(export "main" (func $main))
(func $main (result i32)
(return
diff --git a/test/dot_s/dyncall.wast b/test/dot_s/dyncall.wast
index 40d36f73a..fb1c1b5ee 100644
--- a/test/dot_s/dyncall.wast
+++ b/test/dot_s/dyncall.wast
@@ -4,10 +4,9 @@
(type $FUNCSIG$if (func (param f32) (result i32)))
(type $FUNCSIG$vd (func (param f64)))
(type $FUNCSIG$ffjjdi (func (param f32 i64 i64 f64 i32) (result f32)))
+ (import "env" "memory" (memory $0 1))
(table 6 6 anyfunc)
(elem (i32.const 0) $__wasm_nullptr $i $i_f $vd $ffjjdi $vd2)
- (memory $0 1)
- (export "memory" (memory $0))
(export "i" (func $i))
(export "i_f" (func $i_f))
(export "vd" (func $vd))
diff --git a/test/dot_s/exit.wast b/test/dot_s/exit.wast
index 9e71a9bdc..6213612fc 100644
--- a/test/dot_s/exit.wast
+++ b/test/dot_s/exit.wast
@@ -1,9 +1,8 @@
(module
(type $FUNCSIG$vi (func (param i32)))
(import "env" "exit" (func $exit (param i32)))
+ (import "env" "memory" (memory $0 1))
(table 0 anyfunc)
- (memory $0 1)
- (export "memory" (memory $0))
(export "main" (func $main))
(func $main (result i32)
(local $0 i32)
diff --git a/test/dot_s/export_malloc_free.wast b/test/dot_s/export_malloc_free.wast
index 22ae51549..96bcdf4ac 100644
--- a/test/dot_s/export_malloc_free.wast
+++ b/test/dot_s/export_malloc_free.wast
@@ -1,7 +1,6 @@
(module
+ (import "env" "memory" (memory $0 1))
(table 0 anyfunc)
- (memory $0 1)
- (export "memory" (memory $0))
(export "main" (func $main))
(export "malloc" (func $malloc))
(export "free" (func $free))
diff --git a/test/dot_s/fix_em_ehsjlj_names.wast b/test/dot_s/fix_em_ehsjlj_names.wast
index fb1722a68..ff13f635e 100644
--- a/test/dot_s/fix_em_ehsjlj_names.wast
+++ b/test/dot_s/fix_em_ehsjlj_names.wast
@@ -12,10 +12,9 @@
(import "env" "invoke_iii" (func $invoke_iii (param i32 i32 i32) (result i32)))
(import "env" "invoke_iiii" (func $invoke_iiii (param i32 i32 i32 i32) (result i32)))
(import "env" "invoke_v" (func $invoke_v (param i32)))
+ (import "env" "memory" (memory $0 1))
(table 5 5 anyfunc)
(elem (i32.const 0) $__wasm_nullptr $_Z5func1v $_Z5func2iii $_Z5func3fd $_Z5func4P8mystructS_)
- (memory $0 1)
- (export "memory" (memory $0))
(export "main" (func $main))
(export "dynCall_v" (func $dynCall_v))
(export "dynCall_iiii" (func $dynCall_iiii))
diff --git a/test/dot_s/function-data-sections.wast b/test/dot_s/function-data-sections.wast
index f634ec38e..f50c7c9cb 100644
--- a/test/dot_s/function-data-sections.wast
+++ b/test/dot_s/function-data-sections.wast
@@ -1,10 +1,9 @@
(module
+ (import "env" "memory" (memory $0 1))
(table 0 anyfunc)
- (memory $0 1)
(data (i32.const 12) "\00\00\00\00")
(data (i32.const 16) "\01\00\00\00")
(data (i32.const 20) "33\13@")
- (export "memory" (memory $0))
(export "foo" (func $foo))
(export "bar" (func $bar))
(export "qux" (func $qux))
diff --git a/test/dot_s/hostFinalize.wast b/test/dot_s/hostFinalize.wast
index 97ba45498..c3953823a 100644
--- a/test/dot_s/hostFinalize.wast
+++ b/test/dot_s/hostFinalize.wast
@@ -1,7 +1,6 @@
(module
+ (import "env" "memory" (memory $0 1))
(table 0 anyfunc)
- (memory $0 1)
- (export "memory" (memory $0))
(func $_main
(drop
(grow_memory
diff --git a/test/dot_s/indidx.wast b/test/dot_s/indidx.wast
index c96043b0c..e3dedd2b5 100644
--- a/test/dot_s/indidx.wast
+++ b/test/dot_s/indidx.wast
@@ -2,11 +2,10 @@
(type $FUNCSIG$i (func (result i32)))
(type $FUNCSIG$v (func))
(import "env" "getchar" (func $getchar (result i32)))
+ (import "env" "memory" (memory $0 1))
(table 5 5 anyfunc)
(elem (i32.const 0) $__wasm_nullptr $c $b $d $a)
- (memory $0 1)
(data (i32.const 16) "\04\00\00\00\02\00\00\00\01\00\00\00\03\00\00\00")
- (export "memory" (memory $0))
(export "main" (func $main))
(export "dynCall_i" (func $dynCall_i))
(func $a (type $FUNCSIG$i) (result i32)
diff --git a/test/dot_s/indirect-import.wast b/test/dot_s/indirect-import.wast
index 0f1c3b751..64dbe30ae 100644
--- a/test/dot_s/indirect-import.wast
+++ b/test/dot_s/indirect-import.wast
@@ -7,13 +7,12 @@
(import "env" "extern_ijidf" (func $extern_ijidf (param i64 i32 f64 f32) (result i32)))
(import "env" "extern_v" (func $extern_v))
(import "env" "extern_vj" (func $extern_vj (param i64)))
+ (import "env" "memory" (memory $0 1))
(import "env" "extern_fd" (func $extern_fd (param f64) (result f32)))
(import "env" "extern_struct" (func $extern_struct (param i32)))
(import "env" "extern_sret" (func $extern_sret (param i32)))
(table 7 7 anyfunc)
(elem (i32.const 0) $__wasm_nullptr $__importThunk_extern_fd $__importThunk_extern_vj $__importThunk_extern_v $__importThunk_extern_ijidf $__importThunk_extern_struct $__importThunk_extern_sret)
- (memory $0 1)
- (export "memory" (memory $0))
(export "bar" (func $bar))
(export "baz" (func $baz))
(export "dynCall_fd" (func $dynCall_fd))
diff --git a/test/dot_s/initializers.wast b/test/dot_s/initializers.wast
index 19e7b8c85..857eb37ba 100644
--- a/test/dot_s/initializers.wast
+++ b/test/dot_s/initializers.wast
@@ -1,7 +1,6 @@
(module
+ (import "env" "memory" (memory $0 1))
(table 0 anyfunc)
- (memory $0 1)
- (export "memory" (memory $0))
(export "main" (func $main))
(export "f1" (func $f1))
(export "f2" (func $f2))
diff --git a/test/dot_s/lcomm-in-text-segment.wast b/test/dot_s/lcomm-in-text-segment.wast
index 2442d8f97..344167ba8 100644
--- a/test/dot_s/lcomm-in-text-segment.wast
+++ b/test/dot_s/lcomm-in-text-segment.wast
@@ -1,7 +1,6 @@
(module
+ (import "env" "memory" (memory $0 1))
(table 0 anyfunc)
- (memory $0 1)
(data (i32.const 20) "\10\00\00\00")
- (export "memory" (memory $0))
)
;; METADATA: { "asmConsts": {},"staticBump": 24, "initializers": [] }
diff --git a/test/dot_s/local_align.wast b/test/dot_s/local_align.wast
index f25555bb5..a10e205b3 100644
--- a/test/dot_s/local_align.wast
+++ b/test/dot_s/local_align.wast
@@ -1,7 +1,6 @@
(module
+ (import "env" "memory" (memory $0 1))
(table 0 anyfunc)
- (memory $0 1)
- (export "memory" (memory $0))
(export "main" (func $main))
(func $foo (param $0 i32)
)
diff --git a/test/dot_s/macClangMetaData.wast b/test/dot_s/macClangMetaData.wast
index f295ec8d0..6a08c523a 100644
--- a/test/dot_s/macClangMetaData.wast
+++ b/test/dot_s/macClangMetaData.wast
@@ -1,10 +1,9 @@
(module
(type $FUNCSIG$ii (func (param i32) (result i32)))
(import "env" "puts" (func $puts (param i32) (result i32)))
+ (import "env" "memory" (memory $0 1))
(table 0 anyfunc)
- (memory $0 1)
(data (i32.const 16) "Hello, World!\00")
- (export "memory" (memory $0))
(export "main" (func $main))
(func $main (param $0 i32) (param $1 i32) (result i32)
(drop
diff --git a/test/dot_s/memops.wast b/test/dot_s/memops.wast
index 71c08395f..bb55b5b51 100644
--- a/test/dot_s/memops.wast
+++ b/test/dot_s/memops.wast
@@ -1,10 +1,9 @@
(module
(type $FUNCSIG$vi (func (param i32)))
+ (import "env" "memory" (memory $0 1))
(import "env" "emscripten_asm_const_vi" (func $emscripten_asm_const_vi (param i32)))
(table 0 anyfunc)
- (memory $0 1)
(data (i32.const 16) "{ Module.print(\"hello, world! \" + HEAP32[8>>2]); }\00")
- (export "memory" (memory $0))
(export "main" (func $main))
(func $_Z6reporti (param $0 i32)
(i32.store
diff --git a/test/dot_s/minimal.wast b/test/dot_s/minimal.wast
index d9f4c18a6..0babc39df 100644
--- a/test/dot_s/minimal.wast
+++ b/test/dot_s/minimal.wast
@@ -1,7 +1,6 @@
(module
+ (import "env" "memory" (memory $0 1))
(table 0 anyfunc)
- (memory $0 1)
- (export "memory" (memory $0))
(export "main" (func $main))
(func $main (result i32)
(return
diff --git a/test/dot_s/permute.wast b/test/dot_s/permute.wast
index d72b5bd57..d5db99f1c 100644
--- a/test/dot_s/permute.wast
+++ b/test/dot_s/permute.wast
@@ -1,7 +1,6 @@
(module
+ (import "env" "memory" (memory $0 1))
(table 0 anyfunc)
- (memory $0 1)
(data (i32.const 16) "hE?\8ds\0e7\db[g\8f\955it\c4k\0b\e2\ef\bcld\e0\fd\8c\9e\86&~\d8\94\89+\c8\a4\c2\f2\fb\12\1cej\d99\b7\b3W\c6w\af\ae\caM>\92ub\96\84\b6\b0N\ec;q\11\f7\bf\e31\e6\a7\90\fc\03\e4\aa\d7\cc- \15\83DH\80r\fa\01X\eb:_\00A\cd\e9o`n\ac(\ad\ba0\dcyS#\f4$\"\82\7f}\8e\f6\93L\'\bb\bdZ\ed4\18\f3\c0\cf\ff\a3\f8\07\05\9c\d3\0f\a0\06m%\\\f9^B<\e7\b1\17\98]\0c\dd\c5\f5p\e5\fezJ\ab,F\a5@\08R\85!\b8\1a\ce\d5\04\nI\a6\d1\9f\8a\c9\a9|\97\9aG\be8Y\8b\c1\1b\d4\ea\b9\19\14\9b\9163\d0\1d\d2\df=C\1f\0dc\e1\c7QUv\02\b5aK\b4\tV\c3x\e8\a1\1e\81\de/{\da\d6Pf\10T\f0)\88\16\ee\a8\9d\f1\cbO*\b2\99\132\87.\a2")
- (export "memory" (memory $0))
)
;; METADATA: { "asmConsts": {},"staticBump": 272, "initializers": [] }
diff --git a/test/dot_s/relocation.wast b/test/dot_s/relocation.wast
index 94dc69a3e..0c74aa7b8 100644
--- a/test/dot_s/relocation.wast
+++ b/test/dot_s/relocation.wast
@@ -1,9 +1,8 @@
(module
+ (import "env" "memory" (memory $0 1))
(table 0 anyfunc)
- (memory $0 1)
(data (i32.const 12) "\10\00\00\00")
(data (i32.const 16) "\0c\00\00\00")
- (export "memory" (memory $0))
(export "main" (func $main))
(func $main (result i32)
(local $0 i32)
diff --git a/test/dot_s/return.wast b/test/dot_s/return.wast
index 339ea275c..896e99357 100644
--- a/test/dot_s/return.wast
+++ b/test/dot_s/return.wast
@@ -1,7 +1,6 @@
(module
+ (import "env" "memory" (memory $0 1))
(table 0 anyfunc)
- (memory $0 1)
- (export "memory" (memory $0))
(export "return_i32" (func $return_i32))
(export "return_void" (func $return_void))
(func $return_i32 (result i32)
diff --git a/test/dot_s/start_main0.wast b/test/dot_s/start_main0.wast
index 430da2675..1586e0ed7 100644
--- a/test/dot_s/start_main0.wast
+++ b/test/dot_s/start_main0.wast
@@ -1,7 +1,6 @@
(module
+ (import "env" "memory" (memory $0 1))
(table 0 anyfunc)
- (memory $0 1)
- (export "memory" (memory $0))
(export "main" (func $main))
(export "_start" (func $_start))
(start $_start)
diff --git a/test/dot_s/start_main2.wast b/test/dot_s/start_main2.wast
index 014e456a8..ccd48c1f1 100644
--- a/test/dot_s/start_main2.wast
+++ b/test/dot_s/start_main2.wast
@@ -1,7 +1,6 @@
(module
+ (import "env" "memory" (memory $0 1))
(table 0 anyfunc)
- (memory $0 1)
- (export "memory" (memory $0))
(export "main" (func $main))
(export "_start" (func $_start))
(start $_start)
diff --git a/test/dot_s/symbolic-offset.wast b/test/dot_s/symbolic-offset.wast
index dafb6b705..3ba10d4c5 100644
--- a/test/dot_s/symbolic-offset.wast
+++ b/test/dot_s/symbolic-offset.wast
@@ -1,8 +1,7 @@
(module
+ (import "env" "memory" (memory $0 1))
(table 0 anyfunc)
- (memory $0 1)
(data (i32.const 12) "\01\00\00\00\00\00\00\00\00\00\00\00")
- (export "memory" (memory $0))
(export "f" (func $f))
(func $f (param $0 i32) (param $1 i32)
(i32.store offset=16
diff --git a/test/dot_s/text_before_type.wast b/test/dot_s/text_before_type.wast
index 4a161a6aa..a5a027698 100644
--- a/test/dot_s/text_before_type.wast
+++ b/test/dot_s/text_before_type.wast
@@ -1,7 +1,6 @@
(module
+ (import "env" "memory" (memory $0 1))
(table 0 anyfunc)
- (memory $0 1)
- (export "memory" (memory $0))
(export "main" (func $main))
(func $main (result i32)
(call $foo)
diff --git a/test/dot_s/unreachable_blocks.wast b/test/dot_s/unreachable_blocks.wast
index a5176e633..3c7b0d158 100644
--- a/test/dot_s/unreachable_blocks.wast
+++ b/test/dot_s/unreachable_blocks.wast
@@ -1,7 +1,6 @@
(module
+ (import "env" "memory" (memory $0 1))
(table 0 anyfunc)
- (memory $0 1)
- (export "memory" (memory $0))
(func $unreachable_block_void
(block $label$0
)
diff --git a/test/dot_s/visibilities.wast b/test/dot_s/visibilities.wast
index 99670851f..de0f32d90 100644
--- a/test/dot_s/visibilities.wast
+++ b/test/dot_s/visibilities.wast
@@ -1,7 +1,6 @@
(module
+ (import "env" "memory" (memory $0 1))
(table 0 anyfunc)
- (memory $0 1)
- (export "memory" (memory $0))
(export "foo" (func $foo))
(export "bar" (func $bar))
(export "qux" (func $qux))