diff options
author | Thomas Lively <tlively@google.com> | 2024-06-20 10:13:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-20 10:13:31 -0700 |
commit | 1079a9e34599e65ee25fb5f32caa57bd21737593 (patch) | |
tree | a68691cb292fa4d80c698ac45fc78e6b5afe07e7 /test/spec | |
parent | 45f6bdd4b2f694513aaed8b785bda422f0067a0d (diff) | |
download | binaryen-1079a9e34599e65ee25fb5f32caa57bd21737593.tar.gz binaryen-1079a9e34599e65ee25fb5f32caa57bd21737593.tar.bz2 binaryen-1079a9e34599e65ee25fb5f32caa57bd21737593.zip |
Re-enable spec tests requiring multivalue (#6684)
And delete tests that no longer pass now that multivalue is standard.
Diffstat (limited to 'test/spec')
-rw-r--r-- | test/spec/func.wast | 13 | ||||
-rw-r--r-- | test/spec/type.wast | 45 |
2 files changed, 18 insertions, 40 deletions
diff --git a/test/spec/func.wast b/test/spec/func.wast index a6b05f53c..af685fb9d 100644 --- a/test/spec/func.wast +++ b/test/spec/func.wast @@ -490,19 +490,6 @@ ;; Invalid typing of result (assert_invalid - (module (func $type-multiple-result (result i32 i32) (unreachable))) - "invalid result arity" -) -(assert_invalid - (module - (type (func (result i32 i32))) - (func $type-multiple-result (type 0) (unreachable)) - ) - "invalid result arity" -) - - -(assert_invalid (module (func $type-empty-i32 (result i32))) "type mismatch" ) diff --git a/test/spec/type.wast b/test/spec/type.wast index 5ceeeb269..b94063e6a 100644 --- a/test/spec/type.wast +++ b/test/spec/type.wast @@ -11,33 +11,33 @@ (type (func (param $x i32) (result i32))) (type (func (param f32 f64))) - ;; (type (func (result i64 f32))) - ;; (type (func (param i32 i64) (result f32 f64))) + (type (func (result i64 f32))) + (type (func (param i32 i64) (result f32 f64))) (type (func (param f32) (param f64))) (type (func (param $x f32) (param f64))) (type (func (param f32) (param $y f64))) (type (func (param $x f32) (param $y f64))) - ;; (type (func (result i64) (result f32))) - ;; (type (func (param i32) (param i64) (result f32) (result f64))) - ;; (type (func (param $x i32) (param $y i64) (result f32) (result f64))) + (type (func (result i64) (result f32))) + (type (func (param i32) (param i64) (result f32) (result f64))) + (type (func (param $x i32) (param $y i64) (result f32) (result f64))) (type (func (param f32 f64) (param $x i32) (param f64 i32 i32))) - ;; (type (func (result i64 i64 f32) (result f32 i32))) - ;; (type - ;; (func (param i32 i32) (param i64 i32) (result f32 f64) (result f64 i32)) - ;; ) + (type (func (result i64 i64 f32) (result f32 i32))) + (type + (func (param i32 i32) (param i64 i32) (result f32 f64) (result f64 i32)) + ) (type (func (param) (param $x f32) (param) (param) (param f64 i32) (param))) - ;; (type - ;; (func (result) (result) (result i64 i64) (result) (result f32) (result)) - ;; ) - ;; (type - ;; (func - ;; (param i32 i32) (param i64 i32) (param) (param $x i32) (param) - ;; (result) (result f32 f64) (result f64 i32) (result) - ;; ) - ;; ) + (type + (func (result) (result) (result i64 i64) (result) (result f32) (result)) + ) + (type + (func + (param i32 i32) (param i64 i32) (param) (param $x i32) (param) + (result) (result f32 f64) (result f64 i32) (result) + ) + ) ) (assert_malformed @@ -48,12 +48,3 @@ (module quote "(type (func (result $x i32)))") "unexpected token" ) - -(assert_invalid - (module (type (func (result i32 i32)))) - "invalid result arity" -) -(assert_invalid - (module (type (func (result i32) (result i32)))) - "invalid result arity" -) |