diff options
author | Thomas Lively <tlively@google.com> | 2024-01-03 14:59:38 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-03 14:59:38 -0800 |
commit | 0ed42cf976ce9a3dfbe9cbb0885122e8fb6a377b (patch) | |
tree | b7969243a22e1878f37a8d02336ac81fd5fb7e33 /test/passes/fuzz-exec_all-features.wast | |
parent | 1878403ec9c4382ab51ca72257f4d97a23a1fc0d (diff) | |
download | binaryen-0ed42cf976ce9a3dfbe9cbb0885122e8fb6a377b.tar.gz binaryen-0ed42cf976ce9a3dfbe9cbb0885122e8fb6a377b.tar.bz2 binaryen-0ed42cf976ce9a3dfbe9cbb0885122e8fb6a377b.zip |
Use the standard shared memory text format (#6200)
Update the legacy text parser and all tests to use the standard text format for shared memories, e.g. `(memory $m 1 1 shared)` rather than `(memory $m (shared 1 1))`. Also remove support for non-standard in-line "data" or "segment" declarations.
This change makes the tests more compatible with the new text parser, which only supports the standard format.
Diffstat (limited to 'test/passes/fuzz-exec_all-features.wast')
-rw-r--r-- | test/passes/fuzz-exec_all-features.wast | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/passes/fuzz-exec_all-features.wast b/test/passes/fuzz-exec_all-features.wast index 2c9d95d16..bab6afb79 100644 --- a/test/passes/fuzz-exec_all-features.wast +++ b/test/passes/fuzz-exec_all-features.wast @@ -32,7 +32,7 @@ ) (module (import "fuzzing-support" "log-i32" (func $fimport$0 (param i32))) - (memory $0 (shared 1 1)) + (memory $0 1 1 shared) (func $unaligned_load (export "unaligned_load") (result i32) (i32.atomic.load (i32.const 1) ;; unaligned ptr @@ -78,7 +78,7 @@ ) ) (module - (memory $0 (shared 1 1)) + (memory $0 1 1 shared) (data (i32.const 0) "\ff\ff") (func $unsigned_2_bytes (export "unsigned_2_bytes") (result i32) (i32.atomic.rmw16.xor_u ;; should be unsigned @@ -89,7 +89,7 @@ ) (module (import "fuzzing-support" "log-i32" (func $fimport$0 (param i32))) - (memory $0 (shared 1 1)) + (memory $0 1 1 shared) (func $rmw-reads-modifies-and-writes (export "rmw-reads-modifies-and-writes") (drop (i64.atomic.rmw16.and_u offset=4 @@ -106,7 +106,7 @@ ) (module (import "fuzzing-support" "log-i32" (func $fimport$0 (param i32))) - (memory $0 (shared 1 1)) + (memory $0 1 1 shared) (func $rmw-reads-modifies-and-writes-asymmetrical (export "rmw-reads-modifies-and-writes-asymmetrical") (drop (i32.atomic.rmw8.sub_u |