diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/example/typeinfo.cpp | 92 | ||||
-rw-r--r-- | test/lld/duplicate_imports.wat.out | 2 | ||||
-rw-r--r-- | test/min.wast.from-wast | 2 | ||||
-rw-r--r-- | test/min.wast.fromBinary | 2 | ||||
-rw-r--r-- | test/min.wast.fromBinary.noDebugInfo | 2 | ||||
-rw-r--r-- | test/multivalue.wast.from-wast | 4 | ||||
-rw-r--r-- | test/multivalue.wast.fromBinary | 2 | ||||
-rw-r--r-- | test/multivalue.wast.fromBinary.noDebugInfo | 2 | ||||
-rw-r--r-- | test/passes/flatten.bin.txt | 2 | ||||
-rw-r--r-- | test/passes/flatten_dfo_O3_enable-threads.txt | 2 | ||||
-rw-r--r-- | test/passes/flatten_simplify-locals-nonesting_dfo_O3.txt | 2 | ||||
-rw-r--r-- | test/passes/fpcast-emu.txt | 2 | ||||
-rw-r--r-- | test/passes/legalize-js-interface-minimally.txt | 2 | ||||
-rw-r--r-- | test/passes/optimize-instructions_all-features.txt | 4 | ||||
-rw-r--r-- | test/passes/precompute_all-features.txt | 2 | ||||
-rw-r--r-- | test/passes/remove-non-js-ops.txt | 4 | ||||
-rw-r--r-- | test/passes/simplify-locals_all-features.txt | 6 | ||||
-rw-r--r-- | test/passes/simplify-locals_all-features_disable-exception-handling.txt | 4 | ||||
-rw-r--r-- | test/print/min.minified.txt | 2 | ||||
-rw-r--r-- | test/print/min.txt | 2 |
20 files changed, 71 insertions, 71 deletions
diff --git a/test/example/typeinfo.cpp b/test/example/typeinfo.cpp index 345bc0788..14be20292 100644 --- a/test/example/typeinfo.cpp +++ b/test/example/typeinfo.cpp @@ -7,46 +7,46 @@ using namespace wasm; void test_compound() { { - HeapType func(HeapType::FuncKind); + HeapType func(HeapType::func); assert(Type(func, true).getID() == Type::funcref); assert(Type(func, false).getID() == Type(func, false).getID()); assert(Type(func, false).getID() != Type(func, true).getID()); - HeapType sameFunc(HeapType::FuncKind); + HeapType sameFunc(HeapType::func); assert(Type(func, false).getID() == Type(sameFunc, false).getID()); - HeapType extern_(HeapType::ExternKind); + HeapType extern_(HeapType::ext); assert(Type(extern_, true).getID() == Type::externref); assert(Type(extern_, false).getID() == Type(extern_, false).getID()); assert(Type(extern_, false).getID() != Type(extern_, true).getID()); - HeapType sameExtern(HeapType::ExternKind); + HeapType sameExtern(HeapType::ext); assert(Type(extern_, false).getID() == Type(sameExtern, false).getID()); - HeapType exn(HeapType::ExnKind); + HeapType exn(HeapType::exn); assert(Type(exn, true).getID() == Type::exnref); assert(Type(exn, false).getID() == Type(exn, false).getID()); assert(Type(exn, false).getID() != Type(exn, true).getID()); - HeapType sameExn(HeapType::ExnKind); + HeapType sameExn(HeapType::exn); assert(Type(exn, false).getID() == Type(sameExn, false).getID()); - HeapType any(HeapType::AnyKind); + HeapType any(HeapType::any); assert(Type(any, true).getID() == Type::anyref); assert(Type(any, false).getID() == Type(any, false).getID()); assert(Type(any, false).getID() != Type(any, true).getID()); - HeapType sameAny(HeapType::AnyKind); + HeapType sameAny(HeapType::any); assert(Type(any, false).getID() == Type(sameAny, false).getID()); - HeapType eq(HeapType::EqKind); + HeapType eq(HeapType::eq); // assert(Type(eq, true).getID() == Type::eqref); assert(Type(eq, false).getID() == Type(eq, false).getID()); assert(Type(eq, false).getID() != Type(eq, true).getID()); - HeapType sameEq(HeapType::EqKind); + HeapType sameEq(HeapType::eq); assert(Type(eq, false).getID() == Type(sameEq, false).getID()); - HeapType i31(HeapType::I31Kind); + HeapType i31(HeapType::i31); // assert(Type(i31, false).getID() == Type::i31ref); assert(Type(i31, false).getID() == Type(i31, false).getID()); assert(Type(i31, false).getID() != Type(i31, true).getID()); - HeapType sameI31(HeapType::I31Kind); + HeapType sameI31(HeapType::i31); assert(Type(i31, false).getID() == Type(sameI31, false).getID()); } { @@ -98,18 +98,18 @@ void test_compound() { assert(Type(tuple).getID() != Type(otherTuple).getID()); } { - Rtt rtt(0, HeapType::FuncKind); + Rtt rtt(0, HeapType::func); assert(Type(rtt).getID() == Type(rtt).getID()); - Rtt sameRtt(0, HeapType::FuncKind); + Rtt sameRtt(0, HeapType::func); assert(rtt == sameRtt); assert(Type(rtt).getID() == Type(sameRtt).getID()); - Rtt otherDepthRtt(1, HeapType::FuncKind); + Rtt otherDepthRtt(1, HeapType::func); assert(rtt != otherDepthRtt); assert(Type(rtt).getID() != Type(otherDepthRtt).getID()); - Rtt otherHeapTypeRtt(0, HeapType::AnyKind); + Rtt otherHeapTypeRtt(0, HeapType::any); assert(rtt != otherHeapTypeRtt); assert(Type(rtt).getID() != Type(otherHeapTypeRtt).getID()); @@ -129,24 +129,24 @@ void test_compound() { void test_printing() { { std::cout << ";; Heap types\n"; - std::cout << HeapType(HeapType::FuncKind) << "\n"; - std::cout << Type(HeapType::FuncKind, true) << "\n"; - std::cout << Type(HeapType::FuncKind, false) << "\n"; - std::cout << HeapType(HeapType::ExternKind) << "\n"; - std::cout << Type(HeapType::ExternKind, true) << "\n"; - std::cout << Type(HeapType::ExternKind, false) << "\n"; - std::cout << HeapType(HeapType::AnyKind) << "\n"; - std::cout << Type(HeapType::AnyKind, true) << "\n"; - std::cout << Type(HeapType::AnyKind, false) << "\n"; - std::cout << HeapType(HeapType::EqKind) << "\n"; - std::cout << Type(HeapType::EqKind, true) << "\n"; - std::cout << Type(HeapType::EqKind, false) << "\n"; - std::cout << HeapType(HeapType::I31Kind) << "\n"; - std::cout << Type(HeapType::I31Kind, true) << "\n"; - std::cout << Type(HeapType::I31Kind, false) << "\n"; - std::cout << HeapType(HeapType::ExnKind) << "\n"; - std::cout << Type(HeapType::ExnKind, true) << "\n"; - std::cout << Type(HeapType::ExnKind, false) << "\n"; + std::cout << HeapType(HeapType::func) << "\n"; + std::cout << Type(HeapType::func, true) << "\n"; + std::cout << Type(HeapType::func, false) << "\n"; + std::cout << HeapType(HeapType::ext) << "\n"; + std::cout << Type(HeapType::ext, true) << "\n"; + std::cout << Type(HeapType::ext, false) << "\n"; + std::cout << HeapType(HeapType::any) << "\n"; + std::cout << Type(HeapType::any, true) << "\n"; + std::cout << Type(HeapType::any, false) << "\n"; + std::cout << HeapType(HeapType::eq) << "\n"; + std::cout << Type(HeapType::eq, true) << "\n"; + std::cout << Type(HeapType::eq, false) << "\n"; + std::cout << HeapType(HeapType::i31) << "\n"; + std::cout << Type(HeapType::i31, true) << "\n"; + std::cout << Type(HeapType::i31, false) << "\n"; + std::cout << HeapType(HeapType::exn) << "\n"; + std::cout << Type(HeapType::exn, true) << "\n"; + std::cout << Type(HeapType::exn, false) << "\n"; std::cout << HeapType(Signature(Type::none, Type::none)) << "\n"; std::cout << HeapType(Struct({})) << "\n"; std::cout << HeapType(Array({Type::i32, false})) << "\n"; @@ -205,18 +205,18 @@ void test_printing() { } { std::cout << "\n;; Rtt\n"; - std::cout << Rtt(0, HeapType::FuncKind) << "\n"; - std::cout << Type(Rtt(0, HeapType::FuncKind)) << "\n"; - std::cout << Rtt(1, HeapType::ExternKind) << "\n"; - std::cout << Type(Rtt(1, HeapType::ExternKind)) << "\n"; - std::cout << Rtt(2, HeapType::AnyKind) << "\n"; - std::cout << Type(Rtt(2, HeapType::AnyKind)) << "\n"; - std::cout << Rtt(3, HeapType::EqKind) << "\n"; - std::cout << Type(Rtt(3, HeapType::EqKind)) << "\n"; - std::cout << Rtt(4, HeapType::I31Kind) << "\n"; - std::cout << Type(Rtt(4, HeapType::I31Kind)) << "\n"; - std::cout << Rtt(5, HeapType::ExnKind) << "\n"; - std::cout << Type(Rtt(5, HeapType::ExnKind)) << "\n"; + std::cout << Rtt(0, HeapType::func) << "\n"; + std::cout << Type(Rtt(0, HeapType::func)) << "\n"; + std::cout << Rtt(1, HeapType::ext) << "\n"; + std::cout << Type(Rtt(1, HeapType::ext)) << "\n"; + std::cout << Rtt(2, HeapType::any) << "\n"; + std::cout << Type(Rtt(2, HeapType::any)) << "\n"; + std::cout << Rtt(3, HeapType::eq) << "\n"; + std::cout << Type(Rtt(3, HeapType::eq)) << "\n"; + std::cout << Rtt(4, HeapType::i31) << "\n"; + std::cout << Type(Rtt(4, HeapType::i31)) << "\n"; + std::cout << Rtt(5, HeapType::exn) << "\n"; + std::cout << Type(Rtt(5, HeapType::exn)) << "\n"; Rtt signatureRtt(6, Signature(Type::none, Type::none)); std::cout << signatureRtt << "\n"; std::cout << Type(signatureRtt) << "\n"; diff --git a/test/lld/duplicate_imports.wat.out b/test/lld/duplicate_imports.wat.out index 038a986e5..659b518af 100644 --- a/test/lld/duplicate_imports.wat.out +++ b/test/lld/duplicate_imports.wat.out @@ -4,8 +4,8 @@ (type $none_=>_none (func)) (type $none_=>_i32 (func (result i32))) (type $i32_=>_i32 (func (param i32) (result i32))) - (type $i32_i32_=>_i32 (func (param i32 i32) (result i32))) (type $i64_=>_i32 (func (param i64) (result i32))) + (type $i32_i32_=>_i32 (func (param i32 i32) (result i32))) (type $f32_f64_=>_f32 (func (param f32 f64) (result f32))) (type $f64_f64_=>_f32 (func (param f64 f64) (result f32))) (import "env" "puts" (func $puts1 (param i32) (result i32))) diff --git a/test/min.wast.from-wast b/test/min.wast.from-wast index 2a103fcea..3998f43b4 100644 --- a/test/min.wast.from-wast +++ b/test/min.wast.from-wast @@ -1,8 +1,8 @@ (module (type $i32_=>_i32 (func (param i32) (result i32))) (type $i32_i32_i32_=>_i32 (func (param i32 i32 i32) (result i32))) - (type $i32_i32_=>_f32 (func (param i32 i32) (result f32))) (type $f32_=>_f32 (func (param f32) (result f32))) + (type $i32_i32_=>_f32 (func (param i32 i32) (result f32))) (memory $0 256 256) (export "floats" (func $floats)) (func $floats (param $f f32) (result f32) diff --git a/test/min.wast.fromBinary b/test/min.wast.fromBinary index 834b9cc28..fd4cb4a8e 100644 --- a/test/min.wast.fromBinary +++ b/test/min.wast.fromBinary @@ -1,8 +1,8 @@ (module (type $i32_=>_i32 (func (param i32) (result i32))) (type $i32_i32_i32_=>_i32 (func (param i32 i32 i32) (result i32))) - (type $i32_i32_=>_f32 (func (param i32 i32) (result f32))) (type $f32_=>_f32 (func (param f32) (result f32))) + (type $i32_i32_=>_f32 (func (param i32 i32) (result f32))) (memory $0 256 256) (export "floats" (func $floats)) (func $floats (param $f f32) (result f32) diff --git a/test/min.wast.fromBinary.noDebugInfo b/test/min.wast.fromBinary.noDebugInfo index 5931d0ee0..ef00936aa 100644 --- a/test/min.wast.fromBinary.noDebugInfo +++ b/test/min.wast.fromBinary.noDebugInfo @@ -1,8 +1,8 @@ (module (type $i32_=>_i32 (func (param i32) (result i32))) (type $i32_i32_i32_=>_i32 (func (param i32 i32 i32) (result i32))) - (type $i32_i32_=>_f32 (func (param i32 i32) (result f32))) (type $f32_=>_f32 (func (param f32) (result f32))) + (type $i32_i32_=>_f32 (func (param i32 i32) (result f32))) (memory $0 256 256) (export "floats" (func $0)) (func $0 (param $0 f32) (result f32) diff --git a/test/multivalue.wast.from-wast b/test/multivalue.wast.from-wast index 64449925c..91f11f7ca 100644 --- a/test/multivalue.wast.from-wast +++ b/test/multivalue.wast.from-wast @@ -1,12 +1,12 @@ (module (type $none_=>_i32_i64 (func (result i32 i64))) (type $none_=>_none (func)) - (type $none_=>_i32_i64_externref (func (result i32 i64 externref))) (type $none_=>_i64 (func (result i64))) + (type $none_=>_i32_i64_externref (func (result i32 i64 externref))) (type $none_=>_f32_i64_i32 (func (result f32 i64 i32))) (type $none_=>_i32 (func (result i32))) - (type $none_=>_i32_i64_f32 (func (result i32 i64 f32))) (type $none_=>_f32 (func (result f32))) + (type $none_=>_i32_i64_f32 (func (result i32 i64 f32))) (import "env" "pair" (func $pair (result i32 i64))) (global $g1 (mut (i32 i64)) (tuple.make (i32.const 0) diff --git a/test/multivalue.wast.fromBinary b/test/multivalue.wast.fromBinary index bf7afcf90..570408218 100644 --- a/test/multivalue.wast.fromBinary +++ b/test/multivalue.wast.fromBinary @@ -5,8 +5,8 @@ (type $none_=>_i64 (func (result i64))) (type $none_=>_f32_i64_i32 (func (result f32 i64 i32))) (type $none_=>_i32 (func (result i32))) - (type $none_=>_i32_i64_f32 (func (result i32 i64 f32))) (type $none_=>_f32 (func (result f32))) + (type $none_=>_i32_i64_f32 (func (result i32 i64 f32))) (import "env" "pair" (func $pair (result i32 i64))) (global $g1 (mut i32) (i32.const 0)) (global $g2 (mut i64) (i64.const 0)) diff --git a/test/multivalue.wast.fromBinary.noDebugInfo b/test/multivalue.wast.fromBinary.noDebugInfo index 106e7c436..e126698f1 100644 --- a/test/multivalue.wast.fromBinary.noDebugInfo +++ b/test/multivalue.wast.fromBinary.noDebugInfo @@ -5,8 +5,8 @@ (type $none_=>_i64 (func (result i64))) (type $none_=>_f32_i64_i32 (func (result f32 i64 i32))) (type $none_=>_i32 (func (result i32))) - (type $none_=>_i32_i64_f32 (func (result i32 i64 f32))) (type $none_=>_f32 (func (result f32))) + (type $none_=>_i32_i64_f32 (func (result i32 i64 f32))) (import "env" "pair" (func $fimport$0 (result i32 i64))) (global $global$0 (mut i32) (i32.const 0)) (global $global$1 (mut i64) (i64.const 0)) diff --git a/test/passes/flatten.bin.txt b/test/passes/flatten.bin.txt index bc4d93cb7..d8c38d526 100644 --- a/test/passes/flatten.bin.txt +++ b/test/passes/flatten.bin.txt @@ -7,8 +7,8 @@ (type $none_=>_f32 (func (result f32))) (type $f32_=>_f32 (func (param f32) (result f32))) (type $none_=>_f64 (func (result f64))) - (type $i64_f32_f64_i32_i32_=>_f64 (func (param i64 f32 f64 i32 i32) (result f64))) (type $f64_=>_f64 (func (param f64) (result f64))) + (type $i64_f32_f64_i32_i32_=>_f64 (func (param i64 f32 f64 i32 i32) (result f64))) (export "type-local-i32" (func $0)) (export "type-local-i64" (func $1)) (export "type-local-f32" (func $2)) diff --git a/test/passes/flatten_dfo_O3_enable-threads.txt b/test/passes/flatten_dfo_O3_enable-threads.txt index 0491bd1b3..5fa616788 100644 --- a/test/passes/flatten_dfo_O3_enable-threads.txt +++ b/test/passes/flatten_dfo_O3_enable-threads.txt @@ -2,8 +2,8 @@ (type $none_=>_none (func)) (type $none_=>_i32 (func (result i32))) (type $i32_i32_=>_i32 (func (param i32 i32) (result i32))) - (type $i64_i32_=>_f64 (func (param i64 i32) (result f64))) (type $f64_=>_f64 (func (param f64) (result f64))) + (type $i64_i32_=>_f64 (func (param i64 i32) (result f64))) (memory $0 (shared 1 1)) (export "one" (func $0)) (export "two" (func $1)) diff --git a/test/passes/flatten_simplify-locals-nonesting_dfo_O3.txt b/test/passes/flatten_simplify-locals-nonesting_dfo_O3.txt index 79b1396b1..27ad5e239 100644 --- a/test/passes/flatten_simplify-locals-nonesting_dfo_O3.txt +++ b/test/passes/flatten_simplify-locals-nonesting_dfo_O3.txt @@ -1,8 +1,8 @@ (module (type $none_=>_none (func)) (type $i64_=>_none (func (param i64))) - (type $i32_f64_f64_=>_i32 (func (param i32 f64 f64) (result i32))) (type $f64_=>_i32 (func (param f64) (result i32))) + (type $i32_f64_f64_=>_i32 (func (param i32 f64 f64) (result i32))) (type $none_=>_f64 (func (result f64))) (export "if-select" (func $0)) (export "unreachable-body-update-zext" (func $1)) diff --git a/test/passes/fpcast-emu.txt b/test/passes/fpcast-emu.txt index 59e1e2574..5969fc63a 100644 --- a/test/passes/fpcast-emu.txt +++ b/test/passes/fpcast-emu.txt @@ -235,8 +235,8 @@ ) ) (module - (type $i64_i64_i64_i64_i64_i64_i64_i64_i64_i64_i64_i64_i64_i64_i64_i64_=>_i64 (func (param i64 i64 i64 i64 i64 i64 i64 i64 i64 i64 i64 i64 i64 i64 i64 i64) (result i64))) (type $f32_=>_i64 (func (param f32) (result i64))) + (type $i64_i64_i64_i64_i64_i64_i64_i64_i64_i64_i64_i64_i64_i64_i64_i64_=>_i64 (func (param i64 i64 i64 i64 i64 i64 i64 i64 i64 i64 i64 i64 i64 i64 i64 i64) (result i64))) (table $0 42 42 funcref) (global $global$0 (mut i32) (i32.const 10)) (export "func_106" (func $0)) diff --git a/test/passes/legalize-js-interface-minimally.txt b/test/passes/legalize-js-interface-minimally.txt index 2d88b2f8e..f39a2ce84 100644 --- a/test/passes/legalize-js-interface-minimally.txt +++ b/test/passes/legalize-js-interface-minimally.txt @@ -1,8 +1,8 @@ (module (type $none_=>_i64 (func (result i64))) (type $i32_=>_none (func (param i32))) - (type $i32_i32_=>_none (func (param i32 i32))) (type $i64_=>_none (func (param i64))) + (type $i32_i32_=>_none (func (param i32 i32))) (type $none_=>_i32 (func (result i32))) (import "env" "imported" (func $imported (result i64))) (import "env" "setTempRet0" (func $setTempRet0 (param i32))) diff --git a/test/passes/optimize-instructions_all-features.txt b/test/passes/optimize-instructions_all-features.txt index d00dd2b74..5a2ede97a 100644 --- a/test/passes/optimize-instructions_all-features.txt +++ b/test/passes/optimize-instructions_all-features.txt @@ -11,12 +11,12 @@ (type $none_=>_i64 (func (result i64))) (type $i64_=>_i64 (func (param i64) (result i64))) (type $i32_i64_f32_=>_none (func (param i32 i64 f32))) + (type $f32_=>_none (func (param f32))) + (type $f64_=>_none (func (param f64))) (type $i32_i32_i32_f64_=>_none (func (param i32 i32 i32 f64))) (type $i32_i32_f64_f64_=>_none (func (param i32 i32 f64 f64))) (type $i32_i64_f64_i32_=>_none (func (param i32 i64 f64 i32))) - (type $f32_=>_none (func (param f32))) (type $f32_f64_=>_none (func (param f32 f64))) - (type $f64_=>_none (func (param f64))) (type $f64_f32_=>_none (func (param f64 f32))) (type $f64_f64_f32_f32_=>_none (func (param f64 f64 f32 f32))) (type $none_=>_f64 (func (result f64))) diff --git a/test/passes/precompute_all-features.txt b/test/passes/precompute_all-features.txt index 89f40adf5..68d7dce15 100644 --- a/test/passes/precompute_all-features.txt +++ b/test/passes/precompute_all-features.txt @@ -4,8 +4,8 @@ (type $none_=>_f64 (func (result f64))) (type $none_=>_v128 (func (result v128))) (type $i32_=>_none (func (param i32))) - (type $none_=>_i32_i64 (func (result i32 i64))) (type $none_=>_externref (func (result externref))) + (type $none_=>_i32_i64 (func (result i32 i64))) (memory $0 512 512) (data (i32.const 0) "passive") (global $global i32 (i32.const 1)) diff --git a/test/passes/remove-non-js-ops.txt b/test/passes/remove-non-js-ops.txt index cd32fb11c..96bb3e6f0 100644 --- a/test/passes/remove-non-js-ops.txt +++ b/test/passes/remove-non-js-ops.txt @@ -6,10 +6,10 @@ (type $f64_=>_f64 (func (param f64) (result f64))) (type $i32_i32_i32_=>_none (func (param i32 i32 i32))) (type $i32_=>_none (func (param i32))) - (type $i32_i32_=>_none (func (param i32 i32))) - (type $i32_i32_i32_i32_=>_none (func (param i32 i32 i32 i32))) (type $f32_=>_none (func (param f32))) (type $f64_=>_none (func (param f64))) + (type $i32_i32_=>_none (func (param i32 i32))) + (type $i32_i32_i32_i32_=>_none (func (param i32 i32 i32 i32))) (type $none_=>_i32 (func (result i32))) (type $i32_i32_i32_i32_=>_i32 (func (param i32 i32 i32 i32) (result i32))) (type $i32_i32_i32_i32_i32_i32_=>_i32 (func (param i32 i32 i32 i32 i32 i32) (result i32))) diff --git a/test/passes/simplify-locals_all-features.txt b/test/passes/simplify-locals_all-features.txt index a9f056136..2cc323a57 100644 --- a/test/passes/simplify-locals_all-features.txt +++ b/test/passes/simplify-locals_all-features.txt @@ -6,9 +6,9 @@ (type $i32_i32_i32_=>_i32 (func (param i32 i32 i32) (result i32))) (type $i32_i32_i32_i32_=>_i32 (func (param i32 i32 i32 i32) (result i32))) (type $i32_=>_none (func (param i32))) - (type $i32_i32_=>_none (func (param i32 i32))) (type $i64_=>_none (func (param i64))) (type $f32_=>_none (func (param f32))) + (type $i32_i32_=>_none (func (param i32 i32))) (type $i32_i32_=>_i32 (func (param i32 i32) (result i32))) (type $i32_i32_i32_i32_i32_=>_i32 (func (param i32 i32 i32 i32 i32) (result i32))) (type $i32_f64_f64_f32_i32_=>_f64 (func (param i32 f64 f64 f32 i32) (result f64))) @@ -1127,8 +1127,8 @@ (type $i32_=>_i32 (func (param i32) (result i32))) (type $i32_i32_i32_i32_i32_=>_i32 (func (param i32 i32 i32 i32 i32) (result i32))) (type $i32_=>_none (func (param i32))) - (type $i32_i32_=>_none (func (param i32 i32))) (type $f32_=>_none (func (param f32))) + (type $i32_i32_=>_none (func (param i32 i32))) (type $i32_i32_=>_i32 (func (param i32 i32) (result i32))) (type $none_=>_f64 (func (result f64))) (type $i32_i32_=>_f64 (func (param i32 i32) (result f64))) @@ -1896,8 +1896,8 @@ ) (module (type $none_=>_none (func)) - (type $i32_exnref_=>_none (func (param i32 exnref))) (type $exnref_=>_none (func (param exnref))) + (type $i32_exnref_=>_none (func (param i32 exnref))) (type $none_=>_i32 (func (result i32))) (type $none_=>_exnref (func (result exnref))) (event $event$0 (attr 0) (param)) diff --git a/test/passes/simplify-locals_all-features_disable-exception-handling.txt b/test/passes/simplify-locals_all-features_disable-exception-handling.txt index 7215bfadf..e3ff658a7 100644 --- a/test/passes/simplify-locals_all-features_disable-exception-handling.txt +++ b/test/passes/simplify-locals_all-features_disable-exception-handling.txt @@ -6,9 +6,9 @@ (type $i32_i32_i32_=>_i32 (func (param i32 i32 i32) (result i32))) (type $i32_i32_i32_i32_=>_i32 (func (param i32 i32 i32 i32) (result i32))) (type $i32_=>_none (func (param i32))) - (type $i32_i32_=>_none (func (param i32 i32))) (type $i64_=>_none (func (param i64))) (type $f32_=>_none (func (param f32))) + (type $i32_i32_=>_none (func (param i32 i32))) (type $i32_i32_=>_i32 (func (param i32 i32) (result i32))) (type $i32_i32_i32_i32_i32_=>_i32 (func (param i32 i32 i32 i32 i32) (result i32))) (type $i32_f64_f64_f32_i32_=>_f64 (func (param i32 f64 f64 f32 i32) (result f64))) @@ -1121,8 +1121,8 @@ (type $i32_=>_i32 (func (param i32) (result i32))) (type $i32_i32_i32_i32_i32_=>_i32 (func (param i32 i32 i32 i32 i32) (result i32))) (type $i32_=>_none (func (param i32))) - (type $i32_i32_=>_none (func (param i32 i32))) (type $f32_=>_none (func (param f32))) + (type $i32_i32_=>_none (func (param i32 i32))) (type $i32_i32_=>_i32 (func (param i32 i32) (result i32))) (type $none_=>_f64 (func (result f64))) (type $i32_i32_=>_f64 (func (param i32 i32) (result f64))) diff --git a/test/print/min.minified.txt b/test/print/min.minified.txt index f242c8059..69b686301 100644 --- a/test/print/min.minified.txt +++ b/test/print/min.minified.txt @@ -1,4 +1,4 @@ -(module(type $i32_=>_i32 (func(param i32)(result i32)))(type $i32_i32_i32_=>_i32 (func(param i32 i32 i32)(result i32)))(type $i32_i32_=>_f32 (func(param i32 i32)(result f32)))(type $f32_=>_f32 (func(param f32)(result f32)))(memory $0 256 256) +(module(type $i32_=>_i32 (func(param i32)(result i32)))(type $i32_i32_i32_=>_i32 (func(param i32 i32 i32)(result i32)))(type $f32_=>_f32 (func(param f32)(result f32)))(type $i32_i32_=>_f32 (func(param i32 i32)(result f32)))(memory $0 256 256) (export "floats" (func $floats))(func $floats(param $f f32)(result f32)(local $t f32)(f32.add(local.get $t)(local.get $f)))(func $neg(param $k i32)(param $p i32)(result f32)(local $n f32)(local.tee $n(f32.neg(block $block0 (result f32)(i32.store(local.get $k)(local.get $p))(f32.load(local.get $k))))))(func $littleswitch(param $x i32)(result i32)(block $topmost (result i32)(block $switch-case$2(block $switch-case$1(br_table $switch-case$1 $switch-case$2 $switch-case$1(i32.sub(local.get $x)(i32.const 1)))) (br $topmost(i32.const 1))) (br $topmost(i32.const 2))(i32.const 0)))(func $f1(param $i1 i32)(param $i2 i32)(param $i3 i32)(result i32)(block $topmost (result i32)(local.get $i3))))
\ No newline at end of file diff --git a/test/print/min.txt b/test/print/min.txt index 2a103fcea..3998f43b4 100644 --- a/test/print/min.txt +++ b/test/print/min.txt @@ -1,8 +1,8 @@ (module (type $i32_=>_i32 (func (param i32) (result i32))) (type $i32_i32_i32_=>_i32 (func (param i32 i32 i32) (result i32))) - (type $i32_i32_=>_f32 (func (param i32 i32) (result f32))) (type $f32_=>_f32 (func (param f32) (result f32))) + (type $i32_i32_=>_f32 (func (param i32 i32) (result f32))) (memory $0 256 256) (export "floats" (func $floats)) (func $floats (param $f f32) (result f32) |