summaryrefslogtreecommitdiff
path: root/test/passes/remove-unused-nonfunction-module-elements_all-features.wast
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2024-01-03 14:59:38 -0800
committerGitHub <noreply@github.com>2024-01-03 14:59:38 -0800
commit0ed42cf976ce9a3dfbe9cbb0885122e8fb6a377b (patch)
treeb7969243a22e1878f37a8d02336ac81fd5fb7e33 /test/passes/remove-unused-nonfunction-module-elements_all-features.wast
parent1878403ec9c4382ab51ca72257f4d97a23a1fc0d (diff)
downloadbinaryen-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/remove-unused-nonfunction-module-elements_all-features.wast')
-rw-r--r--test/passes/remove-unused-nonfunction-module-elements_all-features.wast10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/passes/remove-unused-nonfunction-module-elements_all-features.wast b/test/passes/remove-unused-nonfunction-module-elements_all-features.wast
index 057088798..942a20ee7 100644
--- a/test/passes/remove-unused-nonfunction-module-elements_all-features.wast
+++ b/test/passes/remove-unused-nonfunction-module-elements_all-features.wast
@@ -101,28 +101,28 @@
)
)
(module ;; more use checks
- (memory $0 (shared 23 256))
+ (memory $0 23 256 shared)
(export "user" $user)
(func $user
(i32.store (i32.const 0) (i32.const 0))
)
)
(module ;; more use checks
- (memory $0 (shared 23 256))
+ (memory $0 23 256 shared)
(export "user" $user)
(func $user (result i32)
(i32.atomic.rmw.add (i32.const 0) (i32.const 0))
)
)
(module ;; more use checks
- (memory $0 (shared 23 256))
+ (memory $0 23 256 shared)
(export "user" $user)
(func $user (result i32)
(i32.atomic.rmw8.cmpxchg_u (i32.const 0) (i32.const 0) (i32.const 0))
)
)
(module ;; more use checks
- (memory $0 (shared 23 256))
+ (memory $0 23 256 shared)
(export "user" $user)
(func $user
(local $0 i32)
@@ -137,7 +137,7 @@
)
)
(module ;; more use checks
- (memory $0 (shared 23 256))
+ (memory $0 23 256 shared)
(export "user" $user)
(func $user (result i32)
(memory.atomic.notify (i32.const 0) (i32.const 0))