diff options
author | Thomas Lively <tlively@google.com> | 2024-01-08 11:46:30 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-08 11:46:30 -0800 |
commit | cc0fab918aed3643abdc3566ade3f70f06d1d954 (patch) | |
tree | 923fe1e125e7b4f95c2dfa20e4525f1c10a190f2 /test/lit/basic | |
parent | 82057de7666b84424f8d2bd90e941762e4e14f0e (diff) | |
download | binaryen-cc0fab918aed3643abdc3566ade3f70f06d1d954.tar.gz binaryen-cc0fab918aed3643abdc3566ade3f70f06d1d954.tar.bz2 binaryen-cc0fab918aed3643abdc3566ade3f70f06d1d954.zip |
Fix incorrect wat in tests (#6207)
The new wat parser is much more strict than the legacy wat parser; the latter
accepts all sorts of things that the spec does not allow. To ease an eventual
transition to using the new wat parser by default, update the tests to use the
standard text format in many places where they previously did not. We do not yet
have a way to prevent new errors from being introduced into the test suite, but
at least there will now be many fewer errors when it comes time to make the
switch.
Diffstat (limited to 'test/lit/basic')
-rw-r--r-- | test/lit/basic/atomics.wast | 2 | ||||
-rw-r--r-- | test/lit/basic/atomics64.wast | 2 | ||||
-rw-r--r-- | test/lit/basic/multi-table.wast | 2 | ||||
-rw-r--r-- | test/lit/basic/reference-types.wast | 2 | ||||
-rw-r--r-- | test/lit/basic/simd.wast | 4 |
5 files changed, 6 insertions, 6 deletions
diff --git a/test/lit/basic/atomics.wast b/test/lit/basic/atomics.wast index e73d6b611..44786b31d 100644 --- a/test/lit/basic/atomics.wast +++ b/test/lit/basic/atomics.wast @@ -546,7 +546,7 @@ ) ) (drop - (memory.atomic.wait64 align=8 offset=16 + (memory.atomic.wait64 offset=16 align=8 (local.get $0) (local.get $1) (local.get $1) diff --git a/test/lit/basic/atomics64.wast b/test/lit/basic/atomics64.wast index 255ecc033..016515a91 100644 --- a/test/lit/basic/atomics64.wast +++ b/test/lit/basic/atomics64.wast @@ -558,7 +558,7 @@ ) ) (drop - (memory.atomic.wait64 align=8 offset=16 + (memory.atomic.wait64 offset=16 align=8 (local.get $0) (local.get $1) (local.get $1) diff --git a/test/lit/basic/multi-table.wast b/test/lit/basic/multi-table.wast index b856f8494..3a464dca1 100644 --- a/test/lit/basic/multi-table.wast +++ b/test/lit/basic/multi-table.wast @@ -83,7 +83,7 @@ ;; table. ;; CHECK-TEXT: (elem $especial (table $tspecial) (i32.const 0) (ref null $none_=>_none) (ref.func $f) (ref.func $h)) ;; CHECK-BIN: (elem $especial (table $tspecial) (i32.const 0) (ref null $none_=>_none) (ref.func $f) (ref.func $h)) - (elem $especial (table $tspecial) (i32.const 0) (ref null $none_=>_none) $f $h) + (elem $especial (table $tspecial) (i32.const 0) (ref null $none_=>_none) (ref.func $f) (ref.func $h)) ;; CHECK-TEXT: (func $f (type $none_=>_none) ;; CHECK-TEXT-NEXT: (drop diff --git a/test/lit/basic/reference-types.wast b/test/lit/basic/reference-types.wast index 94d4f3525..75d5f313f 100644 --- a/test/lit/basic/reference-types.wast +++ b/test/lit/basic/reference-types.wast @@ -174,7 +174,7 @@ (import "env" "import_func" (func $import_func (param eqref) (result funcref))) (import "env" "import_global" (global $import_global eqref)) - (export "export_func" (func $import_func (param eqref) (result funcref))) + (export "export_func" (func $import_func)) (export "export_global" (global $import_global)) ;; Test global initializer expressions diff --git a/test/lit/basic/simd.wast b/test/lit/basic/simd.wast index 483caefca..af771e659 100644 --- a/test/lit/basic/simd.wast +++ b/test/lit/basic/simd.wast @@ -1738,7 +1738,7 @@ ;; CHECK-BIN-NEXT: ) ;; CHECK-BIN-NEXT: ) (func $v128.load64_lane_align_offset (param $0 i32) (param $1 v128) (result v128) - (v128.load64_lane align=1 offset=32 0 + (v128.load64_lane offset=32 align=1 0 (local.get $0) (local.get $1) ) @@ -1871,7 +1871,7 @@ ;; CHECK-BIN-NEXT: ) ;; CHECK-BIN-NEXT: ) (func $v128.store64_lane_align_offset (param $0 i32) (param $1 v128) - (v128.store64_lane align=1 offset=32 0 + (v128.store64_lane offset=32 align=1 0 (local.get $0) (local.get $1) ) |