diff options
44 files changed, 299 insertions, 0 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h index a1b5a7ef9..8e75c6b89 100644 --- a/src/s2wasm.h +++ b/src/s2wasm.h @@ -735,6 +735,10 @@ private: block->name = Name(); } wasm.addFunction(func); + // XXX for now, export all functions + auto exp = allocator.alloc<Export>(); + exp->name = exp->value = func->name; + wasm.addExport(exp); } void parseType() { diff --git a/test/dot_s/basics.wast b/test/dot_s/basics.wast index 12d5d4766..2dce3b877 100644 --- a/test/dot_s/basics.wast +++ b/test/dot_s/basics.wast @@ -1,5 +1,6 @@ (module (memory 0 4294967295 (segment 16 "hello, world!\n\00")) + (export "main" $main) (func $main (param $$0 i32) (param $$1 i32) (result i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/call.wast b/test/dot_s/call.wast index 27262b4f0..5c1bad327 100644 --- a/test/dot_s/call.wast +++ b/test/dot_s/call.wast @@ -1,6 +1,18 @@ (module (memory 0 4294967295) (type $FUNCSIG_v (func)) + (export "call_i32_nullary" $call_i32_nullary) + (export "call_i64_nullary" $call_i64_nullary) + (export "call_float_nullary" $call_float_nullary) + (export "call_double_nullary" $call_double_nullary) + (export "call_void_nullary" $call_void_nullary) + (export "call_i32_unary" $call_i32_unary) + (export "call_i32_binary" $call_i32_binary) + (export "call_indirect_void" $call_indirect_void) + (export "call_indirect_i32" $call_indirect_i32) + (export "tail_call_void_nullary" $tail_call_void_nullary) + (export "fastcc_tail_call_void_nullary" $fastcc_tail_call_void_nullary) + (export "coldcc_tail_call_void_nullary" $coldcc_tail_call_void_nullary) (func $call_i32_nullary (result i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/cfg-stackify.wast b/test/dot_s/cfg-stackify.wast index be6a31292..8f80df96a 100644 --- a/test/dot_s/cfg-stackify.wast +++ b/test/dot_s/cfg-stackify.wast @@ -1,5 +1,18 @@ (module (memory 0 4294967295) + (export "test0" $test0) + (export "test1" $test1) + (export "test2" $test2) + (export "doublediamond" $doublediamond) + (export "triangle" $triangle) + (export "diamond" $diamond) + (export "single_block" $single_block) + (export "minimal_loop" $minimal_loop) + (export "simple_loop" $simple_loop) + (export "doubletriangle" $doubletriangle) + (export "ifelse_earlyexits" $ifelse_earlyexits) + (export "doublediamond_in_a_loop" $doublediamond_in_a_loop) + (export "test3" $test3) (func $test0 (param $$0 i32) (local $$1 i32) (block $fake_return_waka123 diff --git a/test/dot_s/comparisons_f32.wast b/test/dot_s/comparisons_f32.wast index 21a7293c0..238e7d518 100644 --- a/test/dot_s/comparisons_f32.wast +++ b/test/dot_s/comparisons_f32.wast @@ -1,5 +1,19 @@ (module (memory 0 4294967295) + (export "ord_f32" $ord_f32) + (export "uno_f32" $uno_f32) + (export "oeq_f32" $oeq_f32) + (export "une_f32" $une_f32) + (export "olt_f32" $olt_f32) + (export "ole_f32" $ole_f32) + (export "ogt_f32" $ogt_f32) + (export "oge_f32" $oge_f32) + (export "ueq_f32" $ueq_f32) + (export "one_f32" $one_f32) + (export "ult_f32" $ult_f32) + (export "ule_f32" $ule_f32) + (export "ugt_f32" $ugt_f32) + (export "uge_f32" $uge_f32) (func $ord_f32 (param $$0 f32) (param $$1 f32) (result i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/comparisons_f64.wast b/test/dot_s/comparisons_f64.wast index 18a7b422c..6d0989994 100644 --- a/test/dot_s/comparisons_f64.wast +++ b/test/dot_s/comparisons_f64.wast @@ -1,5 +1,19 @@ (module (memory 0 4294967295) + (export "ord_f64" $ord_f64) + (export "uno_f64" $uno_f64) + (export "oeq_f64" $oeq_f64) + (export "une_f64" $une_f64) + (export "olt_f64" $olt_f64) + (export "ole_f64" $ole_f64) + (export "ogt_f64" $ogt_f64) + (export "oge_f64" $oge_f64) + (export "ueq_f64" $ueq_f64) + (export "one_f64" $one_f64) + (export "ult_f64" $ult_f64) + (export "ule_f64" $ule_f64) + (export "ugt_f64" $ugt_f64) + (export "uge_f64" $uge_f64) (func $ord_f64 (param $$0 f64) (param $$1 f64) (result i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/comparisons_i32.wast b/test/dot_s/comparisons_i32.wast index 7155132d9..36b78c85e 100644 --- a/test/dot_s/comparisons_i32.wast +++ b/test/dot_s/comparisons_i32.wast @@ -1,5 +1,15 @@ (module (memory 0 4294967295) + (export "eq_i32" $eq_i32) + (export "ne_i32" $ne_i32) + (export "slt_i32" $slt_i32) + (export "sle_i32" $sle_i32) + (export "ult_i32" $ult_i32) + (export "ule_i32" $ule_i32) + (export "sgt_i32" $sgt_i32) + (export "sge_i32" $sge_i32) + (export "ugt_i32" $ugt_i32) + (export "uge_i32" $uge_i32) (func $eq_i32 (param $$0 i32) (param $$1 i32) (result i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/comparisons_i64.wast b/test/dot_s/comparisons_i64.wast index 743eb1e89..6518261fc 100644 --- a/test/dot_s/comparisons_i64.wast +++ b/test/dot_s/comparisons_i64.wast @@ -1,5 +1,15 @@ (module (memory 0 4294967295) + (export "eq_i64" $eq_i64) + (export "ne_i64" $ne_i64) + (export "slt_i64" $slt_i64) + (export "sle_i64" $sle_i64) + (export "ult_i64" $ult_i64) + (export "ule_i64" $ule_i64) + (export "sgt_i64" $sgt_i64) + (export "sge_i64" $sge_i64) + (export "ugt_i64" $ugt_i64) + (export "uge_i64" $uge_i64) (func $eq_i64 (param $$0 i64) (param $$1 i64) (result i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/conv.wast b/test/dot_s/conv.wast index c93954b4d..3030b6283 100644 --- a/test/dot_s/conv.wast +++ b/test/dot_s/conv.wast @@ -1,5 +1,31 @@ (module (memory 0 4294967295) + (export "i32_wrap_i64" $i32_wrap_i64) + (export "i64_extend_s_i32" $i64_extend_s_i32) + (export "i64_extend_u_i32" $i64_extend_u_i32) + (export "i32_trunc_s_f32" $i32_trunc_s_f32) + (export "i32_trunc_u_f32" $i32_trunc_u_f32) + (export "i32_trunc_s_f64" $i32_trunc_s_f64) + (export "i32_trunc_u_f64" $i32_trunc_u_f64) + (export "i64_trunc_s_f32" $i64_trunc_s_f32) + (export "i64_trunc_u_f32" $i64_trunc_u_f32) + (export "i64_trunc_s_f64" $i64_trunc_s_f64) + (export "i64_trunc_u_f64" $i64_trunc_u_f64) + (export "f32_convert_s_i32" $f32_convert_s_i32) + (export "f32_convert_u_i32" $f32_convert_u_i32) + (export "f64_convert_s_i32" $f64_convert_s_i32) + (export "f64_convert_u_i32" $f64_convert_u_i32) + (export "f32_convert_s_i64" $f32_convert_s_i64) + (export "f32_convert_u_i64" $f32_convert_u_i64) + (export "f64_convert_s_i64" $f64_convert_s_i64) + (export "f64_convert_u_i64" $f64_convert_u_i64) + (export "f64_promote_f32" $f64_promote_f32) + (export "f32_demote_f64" $f32_demote_f64) + (export "anyext" $anyext) + (export "bitcast_i32_to_float" $bitcast_i32_to_float) + (export "bitcast_float_to_i32" $bitcast_float_to_i32) + (export "bitcast_i64_to_double" $bitcast_i64_to_double) + (export "bitcast_double_to_i64" $bitcast_double_to_i64) (func $i32_wrap_i64 (param $$0 i64) (result i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/cpus.wast b/test/dot_s/cpus.wast index fe54610e1..970969f1f 100644 --- a/test/dot_s/cpus.wast +++ b/test/dot_s/cpus.wast @@ -1,5 +1,6 @@ (module (memory 0 4294967295) + (export "f" $f) (func $f (param $$0 i32) (result i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/dead-vreg.wast b/test/dot_s/dead-vreg.wast index ec3d0eee6..ccba272ef 100644 --- a/test/dot_s/dead-vreg.wast +++ b/test/dot_s/dead-vreg.wast @@ -1,5 +1,6 @@ (module (memory 0 4294967295) + (export "foo" $foo) (func $foo (param $$0 i32) (param $$1 i32) (param $$2 i32) (local $$3 i32) (local $$4 i32) diff --git a/test/dot_s/exit.wast b/test/dot_s/exit.wast index 38770ac34..328b8e47e 100644 --- a/test/dot_s/exit.wast +++ b/test/dot_s/exit.wast @@ -1,5 +1,6 @@ (module (memory 0 4294967295) + (export "main" $main) (func $main (result i32) (local $$0 i32) (block diff --git a/test/dot_s/f32.wast b/test/dot_s/f32.wast index 93cb3a548..610e1cd98 100644 --- a/test/dot_s/f32.wast +++ b/test/dot_s/f32.wast @@ -1,5 +1,20 @@ (module (memory 0 4294967295) + (export "fadd32" $fadd32) + (export "fsub32" $fsub32) + (export "fmul32" $fmul32) + (export "fdiv32" $fdiv32) + (export "fabs32" $fabs32) + (export "fneg32" $fneg32) + (export "copysign32" $copysign32) + (export "sqrt32" $sqrt32) + (export "ceil32" $ceil32) + (export "floor32" $floor32) + (export "trunc32" $trunc32) + (export "nearest32" $nearest32) + (export "nearest32_via_rint" $nearest32_via_rint) + (export "fmin32" $fmin32) + (export "fmax32" $fmax32) (func $fadd32 (param $$0 f32) (param $$1 f32) (result f32) (block $fake_return_waka123 (block diff --git a/test/dot_s/f64.wast b/test/dot_s/f64.wast index b29ce79ef..73e31cfe1 100644 --- a/test/dot_s/f64.wast +++ b/test/dot_s/f64.wast @@ -1,5 +1,20 @@ (module (memory 0 4294967295) + (export "fadd64" $fadd64) + (export "fsub64" $fsub64) + (export "fmul64" $fmul64) + (export "fdiv64" $fdiv64) + (export "fabs64" $fabs64) + (export "fneg64" $fneg64) + (export "copysign64" $copysign64) + (export "sqrt64" $sqrt64) + (export "ceil64" $ceil64) + (export "floor64" $floor64) + (export "trunc64" $trunc64) + (export "nearest64" $nearest64) + (export "nearest64_via_rint" $nearest64_via_rint) + (export "fmin64" $fmin64) + (export "fmax64" $fmax64) (func $fadd64 (param $$0 f64) (param $$1 f64) (result f64) (block $fake_return_waka123 (block diff --git a/test/dot_s/fast-isel.wast b/test/dot_s/fast-isel.wast index e8b14ae0c..3254e1013 100644 --- a/test/dot_s/fast-isel.wast +++ b/test/dot_s/fast-isel.wast @@ -1,5 +1,7 @@ (module (memory 0 4294967295) + (export "immediate_f32" $immediate_f32) + (export "immediate_f64" $immediate_f64) (func $immediate_f32 (result f32) (block $fake_return_waka123 (block diff --git a/test/dot_s/frem.wast b/test/dot_s/frem.wast index 7b4918bbc..3d169ff6d 100644 --- a/test/dot_s/frem.wast +++ b/test/dot_s/frem.wast @@ -1,5 +1,7 @@ (module (memory 0 4294967295) + (export "frem32" $frem32) + (export "frem64" $frem64) (func $frem32 (param $$0 f32) (param $$1 f32) (result f32) (block $fake_return_waka123 (block diff --git a/test/dot_s/func.wast b/test/dot_s/func.wast index 36d29dee4..b9f62a88c 100644 --- a/test/dot_s/func.wast +++ b/test/dot_s/func.wast @@ -1,5 +1,11 @@ (module (memory 0 4294967295) + (export "f0" $f0) + (export "f1" $f1) + (export "f2" $f2) + (export "f3" $f3) + (export "f4" $f4) + (export "f5" $f5) (func $f0 (block $fake_return_waka123 (block diff --git a/test/dot_s/global.wast b/test/dot_s/global.wast index 211a696a6..9c6cea15b 100644 --- a/test/dot_s/global.wast +++ b/test/dot_s/global.wast @@ -1,5 +1,7 @@ (module (memory 0 4294967295 (segment 2 "9\05\00\00") (segment 6 "\00\00\00\00") (segment 10 "\01\00\00\00") (segment 14 "*\00\00\00") (segment 18 "\ff\ff\ff\ff") (segment 24 "\00\00\00\00\00\00\00\00") (segment 33 "\00\00\00\00\00\00\00\00") (segment 42 "\ff\ff\ff\ff\ff\ff\ff\ff") (segment 50 "\00\00\00\00") (segment 54 "\00\00\00\80") (segment 58 "\00\00\00@") (segment 63 "\00\00\00\00\00\00\00\00") (segment 72 "\00\00\00\00\00\00\00\00") (segment 81 "\00\00\00\00\00\00\00\00")) + (export "foo" $foo) + (export "call_memcpy" $call_memcpy) (func $foo (result i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/globl.wast b/test/dot_s/globl.wast index b8b72a722..9c57c8f85 100644 --- a/test/dot_s/globl.wast +++ b/test/dot_s/globl.wast @@ -1,5 +1,6 @@ (module (memory 0 4294967295) + (export "foo" $foo) (func $foo (block $fake_return_waka123 (block diff --git a/test/dot_s/i32.wast b/test/dot_s/i32.wast index 9873a7080..ae9e51085 100644 --- a/test/dot_s/i32.wast +++ b/test/dot_s/i32.wast @@ -1,5 +1,23 @@ (module (memory 0 4294967295) + (export "add32" $add32) + (export "sub32" $sub32) + (export "mul32" $mul32) + (export "sdiv32" $sdiv32) + (export "udiv32" $udiv32) + (export "srem32" $srem32) + (export "urem32" $urem32) + (export "and32" $and32) + (export "or32" $or32) + (export "xor32" $xor32) + (export "shl32" $shl32) + (export "shr32" $shr32) + (export "sar32" $sar32) + (export "clz32" $clz32) + (export "clz32_zero_undef" $clz32_zero_undef) + (export "ctz32" $ctz32) + (export "ctz32_zero_undef" $ctz32_zero_undef) + (export "popcnt32" $popcnt32) (func $add32 (param $$0 i32) (param $$1 i32) (result i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/i64.wast b/test/dot_s/i64.wast index 03687f5d3..58b849db3 100644 --- a/test/dot_s/i64.wast +++ b/test/dot_s/i64.wast @@ -1,5 +1,23 @@ (module (memory 0 4294967295) + (export "add64" $add64) + (export "sub64" $sub64) + (export "mul64" $mul64) + (export "sdiv64" $sdiv64) + (export "udiv64" $udiv64) + (export "srem64" $srem64) + (export "urem64" $urem64) + (export "and64" $and64) + (export "or64" $or64) + (export "xor64" $xor64) + (export "shl64" $shl64) + (export "shr64" $shr64) + (export "sar64" $sar64) + (export "clz64" $clz64) + (export "clz64_zero_undef" $clz64_zero_undef) + (export "ctz64" $ctz64) + (export "ctz64_zero_undef" $ctz64_zero_undef) + (export "popcnt64" $popcnt64) (func $add64 (param $$0 i64) (param $$1 i64) (result i64) (block $fake_return_waka123 (block diff --git a/test/dot_s/immediates.wast b/test/dot_s/immediates.wast index b9e7bb4aa..e326d3d4a 100644 --- a/test/dot_s/immediates.wast +++ b/test/dot_s/immediates.wast @@ -1,5 +1,29 @@ (module (memory 0 4294967295) + (export "zero_i32" $zero_i32) + (export "one_i32" $one_i32) + (export "max_i32" $max_i32) + (export "min_i32" $min_i32) + (export "zero_i64" $zero_i64) + (export "one_i64" $one_i64) + (export "max_i64" $max_i64) + (export "min_i64" $min_i64) + (export "negzero_f32" $negzero_f32) + (export "zero_f32" $zero_f32) + (export "one_f32" $one_f32) + (export "two_f32" $two_f32) + (export "nan_f32" $nan_f32) + (export "negnan_f32" $negnan_f32) + (export "inf_f32" $inf_f32) + (export "neginf_f32" $neginf_f32) + (export "negzero_f64" $negzero_f64) + (export "zero_f64" $zero_f64) + (export "one_f64" $one_f64) + (export "two_f64" $two_f64) + (export "nan_f64" $nan_f64) + (export "negnan_f64" $negnan_f64) + (export "inf_f64" $inf_f64) + (export "neginf_f64" $neginf_f64) (func $zero_i32 (result i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/import.wast b/test/dot_s/import.wast index bf8078c25..691b6913e 100644 --- a/test/dot_s/import.wast +++ b/test/dot_s/import.wast @@ -1,5 +1,6 @@ (module (memory 0 4294967295) + (export "f" $f) (func $f (param $$0 i32) (param $$1 f32) (param $$2 i64) (param $$3 i64) (param $$4 i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/legalize.wast b/test/dot_s/legalize.wast index 5289818d3..c7c6263f1 100644 --- a/test/dot_s/legalize.wast +++ b/test/dot_s/legalize.wast @@ -1,5 +1,10 @@ (module (memory 0 4294967295) + (export "shl_i3" $shl_i3) + (export "shl_i53" $shl_i53) + (export "sext_in_reg_i32_i64" $sext_in_reg_i32_i64) + (export "fpext_f32_f64" $fpext_f32_f64) + (export "fpconv_f64_f32" $fpconv_f64_f32) (func $shl_i3 (param $$0 i32) (param $$1 i32) (param $$2 i32) (result i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/load-ext.wast b/test/dot_s/load-ext.wast index 1e13c918f..f640ad7d4 100644 --- a/test/dot_s/load-ext.wast +++ b/test/dot_s/load-ext.wast @@ -1,5 +1,15 @@ (module (memory 0 4294967295) + (export "sext_i8_i32" $sext_i8_i32) + (export "zext_i8_i32" $zext_i8_i32) + (export "sext_i16_i32" $sext_i16_i32) + (export "zext_i16_i32" $zext_i16_i32) + (export "sext_i8_i64" $sext_i8_i64) + (export "zext_i8_i64" $zext_i8_i64) + (export "sext_i16_i64" $sext_i16_i64) + (export "zext_i16_i64" $zext_i16_i64) + (export "sext_i32_i64" $sext_i32_i64) + (export "zext_i32_i64" $zext_i32_i64) (func $sext_i8_i32 (param $$0 i32) (result i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/load-store-i1.wast b/test/dot_s/load-store-i1.wast index 4acb15499..f5f89a2b7 100644 --- a/test/dot_s/load-store-i1.wast +++ b/test/dot_s/load-store-i1.wast @@ -1,5 +1,11 @@ (module (memory 0 4294967295) + (export "load_u_i1_i32" $load_u_i1_i32) + (export "load_s_i1_i32" $load_s_i1_i32) + (export "load_u_i1_i64" $load_u_i1_i64) + (export "load_s_i1_i64" $load_s_i1_i64) + (export "store_i32_i1" $store_i32_i1) + (export "store_i64_i1" $store_i64_i1) (func $load_u_i1_i32 (param $$0 i32) (result i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/load.wast b/test/dot_s/load.wast index 5a29cd97c..575641c22 100644 --- a/test/dot_s/load.wast +++ b/test/dot_s/load.wast @@ -1,5 +1,10 @@ (module (memory 0 4294967295) + (export "ldi32" $ldi32) + (export "ldi64" $ldi64) + (export "ldf32" $ldf32) + (export "ldf64" $ldf64) + (export "ldoff" $ldoff) (func $ldi32 (param $$0 i32) (result i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/memory-addr32.wast b/test/dot_s/memory-addr32.wast index 0ef5b95cc..7acf89d44 100644 --- a/test/dot_s/memory-addr32.wast +++ b/test/dot_s/memory-addr32.wast @@ -1,5 +1,7 @@ (module (memory 0 4294967295) + (export "memory_size" $memory_size) + (export "grow_memory" $grow_memory) (func $memory_size (result i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/memory-addr64.wast b/test/dot_s/memory-addr64.wast index 70d3a100b..c8039090d 100644 --- a/test/dot_s/memory-addr64.wast +++ b/test/dot_s/memory-addr64.wast @@ -1,5 +1,7 @@ (module (memory 0 4294967295) + (export "memory_size" $memory_size) + (export "grow_memory" $grow_memory) (func $memory_size (result i64) (block $fake_return_waka123 (block diff --git a/test/dot_s/minimal.wast b/test/dot_s/minimal.wast index b151ef090..4a098f657 100644 --- a/test/dot_s/minimal.wast +++ b/test/dot_s/minimal.wast @@ -1,5 +1,6 @@ (module (memory 0 4294967295) + (export "main" $main) (func $main (result i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/offset-folding.wast b/test/dot_s/offset-folding.wast index dca509c4a..c20c35565 100644 --- a/test/dot_s/offset-folding.wast +++ b/test/dot_s/offset-folding.wast @@ -1,5 +1,9 @@ (module (memory 0 4294967295 (segment 4 "\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00")) + (export "test0" $test0) + (export "test1" $test1) + (export "test2" $test2) + (export "test3" $test3) (func $test0 (result i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/phi.wast b/test/dot_s/phi.wast index 9ec40d48c..786277d86 100644 --- a/test/dot_s/phi.wast +++ b/test/dot_s/phi.wast @@ -1,5 +1,7 @@ (module (memory 0 4294967295) + (export "test0" $test0) + (export "test1" $test1) (func $test0 (param $$0 i32) (result i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/reg-stackify.wast b/test/dot_s/reg-stackify.wast index c55af3d38..a9f270574 100644 --- a/test/dot_s/reg-stackify.wast +++ b/test/dot_s/reg-stackify.wast @@ -1,5 +1,10 @@ (module (memory 0 4294967295) + (export "no0" $no0) + (export "no1" $no1) + (export "yes0" $yes0) + (export "yes1" $yes1) + (export "stack_uses" $stack_uses) (func $no0 (param $$0 i32) (param $$1 i32) (result i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/return-int32.wast b/test/dot_s/return-int32.wast index e8a0c682a..7e1255781 100644 --- a/test/dot_s/return-int32.wast +++ b/test/dot_s/return-int32.wast @@ -1,5 +1,6 @@ (module (memory 0 4294967295) + (export "return_i32" $return_i32) (func $return_i32 (param $$0 i32) (result i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/return-void.wast b/test/dot_s/return-void.wast index 4d319d050..7e5193fa1 100644 --- a/test/dot_s/return-void.wast +++ b/test/dot_s/return-void.wast @@ -1,5 +1,6 @@ (module (memory 0 4294967295) + (export "return_void" $return_void) (func $return_void (block $fake_return_waka123 (block diff --git a/test/dot_s/returned.wast b/test/dot_s/returned.wast index 477d2588d..8f28594a6 100644 --- a/test/dot_s/returned.wast +++ b/test/dot_s/returned.wast @@ -1,5 +1,7 @@ (module (memory 0 4294967295) + (export "_Z3foov" $_Z3foov) + (export "_Z3barPvS_l" $_Z3barPvS_l) (func $_Z3foov (result i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/select.wast b/test/dot_s/select.wast index 2ff9b12ba..d383aa6e1 100644 --- a/test/dot_s/select.wast +++ b/test/dot_s/select.wast @@ -1,5 +1,17 @@ (module (memory 0 4294967295) + (export "select_i32_bool" $select_i32_bool) + (export "select_i32_eq" $select_i32_eq) + (export "select_i32_ne" $select_i32_ne) + (export "select_i64_bool" $select_i64_bool) + (export "select_i64_eq" $select_i64_eq) + (export "select_i64_ne" $select_i64_ne) + (export "select_f32_bool" $select_f32_bool) + (export "select_f32_eq" $select_f32_eq) + (export "select_f32_ne" $select_f32_ne) + (export "select_f64_bool" $select_f64_bool) + (export "select_f64_eq" $select_f64_eq) + (export "select_f64_ne" $select_f64_ne) (func $select_i32_bool (param $$0 i32) (param $$1 i32) (param $$2 i32) (result i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/signext-zeroext.wast b/test/dot_s/signext-zeroext.wast index 8148fdd7b..162f5bed7 100644 --- a/test/dot_s/signext-zeroext.wast +++ b/test/dot_s/signext-zeroext.wast @@ -1,5 +1,9 @@ (module (memory 0 4294967295) + (export "z2s_func" $z2s_func) + (export "s2z_func" $s2z_func) + (export "z2s_call" $z2s_call) + (export "s2z_call" $s2z_call) (func $z2s_func (param $$0 i32) (result i32) (local $$1 i32) (block $fake_return_waka123 diff --git a/test/dot_s/store-results.wast b/test/dot_s/store-results.wast index d4399a8d1..e447dcaac 100644 --- a/test/dot_s/store-results.wast +++ b/test/dot_s/store-results.wast @@ -1,5 +1,8 @@ (module (memory 0 4294967295 (segment 2 "\00\00\00\00\00\00\00\00\00\00\00\00")) + (export "single_block" $single_block) + (export "foo" $foo) + (export "bar" $bar) (func $single_block (param $$0 i32) (result i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/store-trunc.wast b/test/dot_s/store-trunc.wast index 75dd37636..6aabfef98 100644 --- a/test/dot_s/store-trunc.wast +++ b/test/dot_s/store-trunc.wast @@ -1,5 +1,11 @@ (module (memory 0 4294967295) + (export "trunc_i8_i32" $trunc_i8_i32) + (export "trunc_i16_i32" $trunc_i16_i32) + (export "trunc_i8_i64" $trunc_i8_i64) + (export "trunc_i16_i64" $trunc_i16_i64) + (export "trunc_i32_i64" $trunc_i32_i64) + (export "trunc_i8_i32_off" $trunc_i8_i32_off) (func $trunc_i8_i32 (param $$0 i32) (param $$1 i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/store.wast b/test/dot_s/store.wast index 26dc8d89c..8acb75f77 100644 --- a/test/dot_s/store.wast +++ b/test/dot_s/store.wast @@ -1,5 +1,10 @@ (module (memory 0 4294967295) + (export "sti32" $sti32) + (export "sti64" $sti64) + (export "stf32" $stf32) + (export "stf64" $stf64) + (export "stoff" $stoff) (func $sti32 (param $$0 i32) (param $$1 i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/unreachable.wast b/test/dot_s/unreachable.wast index eddc4f23c..9a9387805 100644 --- a/test/dot_s/unreachable.wast +++ b/test/dot_s/unreachable.wast @@ -1,5 +1,8 @@ (module (memory 0 4294967295) + (export "f1" $f1) + (export "f2" $f2) + (export "f3" $f3) (func $f1 (result i32) (block (call $abort) diff --git a/test/dot_s/unused-argument.wast b/test/dot_s/unused-argument.wast index 7d4f111ad..7316528c4 100644 --- a/test/dot_s/unused-argument.wast +++ b/test/dot_s/unused-argument.wast @@ -1,5 +1,8 @@ (module (memory 0 4294967295) + (export "unused_first" $unused_first) + (export "unused_second" $unused_second) + (export "call_something" $call_something) (func $unused_first (param $$0 i32) (param $$1 i32) (result i32) (block $fake_return_waka123 (block diff --git a/test/dot_s/varargs.wast b/test/dot_s/varargs.wast index d8536a210..56374051d 100644 --- a/test/dot_s/varargs.wast +++ b/test/dot_s/varargs.wast @@ -1,5 +1,11 @@ (module (memory 0 4294967295) + (export "end" $end) + (export "copy" $copy) + (export "arg_i8" $arg_i8) + (export "arg_i32" $arg_i32) + (export "arg_i128" $arg_i128) + (export "caller_none" $caller_none) (func $end (param $$0 i32) (block $fake_return_waka123 (block |