summaryrefslogtreecommitdiff
path: root/test/passes
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2020-11-13 15:54:08 -0800
committerGitHub <noreply@github.com>2020-11-13 15:54:08 -0800
commit75e61204b67e921464af14fd13ff768d88755e8c (patch)
tree969ddb2e4e2870fef662375914f16fc50713cd4c /test/passes
parentcc2b3e4175a6edc53487eec06da13b39eb66716b (diff)
downloadbinaryen-75e61204b67e921464af14fd13ff768d88755e8c.tar.gz
binaryen-75e61204b67e921464af14fd13ff768d88755e8c.tar.bz2
binaryen-75e61204b67e921464af14fd13ff768d88755e8c.zip
Rename atomic.notify and *.atomic.wait (#3353)
- atomic.notify -> memory.atomic.notify - i32.atomic.wait -> memory.atomic.wait32 - i64.atomic.wait -> memory.atomic.wait64 See WebAssembly/threads#149. This renames instruction name printing but not the internal data structure names, such as `AtomicNotify`, which are not always the same as printed instruction names anyway. This also does not modify C API. But this fixes interface functions in binaryen.js because it seems binaryen.js's interface functions all follow the corresponding instruction names.
Diffstat (limited to 'test/passes')
-rw-r--r--test/passes/fuzz-exec_all-features.txt4
-rw-r--r--test/passes/fuzz-exec_all-features.wast4
-rw-r--r--test/passes/remove-unused-module-elements_all-features.txt4
-rw-r--r--test/passes/remove-unused-module-elements_all-features.wast4
-rw-r--r--test/passes/remove-unused-nonfunction-module-elements_all-features.txt4
-rw-r--r--test/passes/remove-unused-nonfunction-module-elements_all-features.wast4
6 files changed, 12 insertions, 12 deletions
diff --git a/test/passes/fuzz-exec_all-features.txt b/test/passes/fuzz-exec_all-features.txt
index a6b25e8ca..cbdcf4fdb 100644
--- a/test/passes/fuzz-exec_all-features.txt
+++ b/test/passes/fuzz-exec_all-features.txt
@@ -98,7 +98,7 @@
)
)
(func $3 (result i32)
- (atomic.notify
+ (memory.atomic.notify
(i32.const 1)
(i32.const 1)
)
@@ -119,7 +119,7 @@
)
(func $5
(drop
- (atomic.notify offset=22
+ (memory.atomic.notify offset=22
(i32.const -104)
(i32.const -72)
)
diff --git a/test/passes/fuzz-exec_all-features.wast b/test/passes/fuzz-exec_all-features.wast
index fd3018502..4e5c926a5 100644
--- a/test/passes/fuzz-exec_all-features.wast
+++ b/test/passes/fuzz-exec_all-features.wast
@@ -51,7 +51,7 @@
)
)
(func "unaligned_notify" (result i32)
- (atomic.notify
+ (memory.atomic.notify
(i32.const 1) ;; unaligned
(i32.const 1)
)
@@ -70,7 +70,7 @@
)
(func "oob_notify"
(drop
- (atomic.notify offset=22
+ (memory.atomic.notify offset=22
(i32.const -104) ;; illegal address
(i32.const -72)
)
diff --git a/test/passes/remove-unused-module-elements_all-features.txt b/test/passes/remove-unused-module-elements_all-features.txt
index e79257211..81382e4f4 100644
--- a/test/passes/remove-unused-module-elements_all-features.txt
+++ b/test/passes/remove-unused-module-elements_all-features.txt
@@ -157,7 +157,7 @@
(local $0 i32)
(local $1 i64)
(drop
- (i32.atomic.wait
+ (memory.atomic.wait32
(local.get $0)
(local.get $0)
(local.get $1)
@@ -170,7 +170,7 @@
(memory $0 (shared 23 256))
(export "user" (func $user))
(func $user (result i32)
- (atomic.notify
+ (memory.atomic.notify
(i32.const 0)
(i32.const 0)
)
diff --git a/test/passes/remove-unused-module-elements_all-features.wast b/test/passes/remove-unused-module-elements_all-features.wast
index 265ef0e5f..bf9d5c7ff 100644
--- a/test/passes/remove-unused-module-elements_all-features.wast
+++ b/test/passes/remove-unused-module-elements_all-features.wast
@@ -128,7 +128,7 @@
(local $0 i32)
(local $1 i64)
(drop
- (i32.atomic.wait
+ (memory.atomic.wait32
(local.get $0)
(local.get $0)
(local.get $1)
@@ -140,7 +140,7 @@
(memory $0 (shared 23 256))
(export "user" $user)
(func $user (result i32)
- (atomic.notify (i32.const 0) (i32.const 0))
+ (memory.atomic.notify (i32.const 0) (i32.const 0))
)
)
(module ;; more use checks
diff --git a/test/passes/remove-unused-nonfunction-module-elements_all-features.txt b/test/passes/remove-unused-nonfunction-module-elements_all-features.txt
index 2091e9560..5a5406f78 100644
--- a/test/passes/remove-unused-nonfunction-module-elements_all-features.txt
+++ b/test/passes/remove-unused-nonfunction-module-elements_all-features.txt
@@ -172,7 +172,7 @@
(local $0 i32)
(local $1 i64)
(drop
- (i32.atomic.wait
+ (memory.atomic.wait32
(local.get $0)
(local.get $0)
(local.get $1)
@@ -185,7 +185,7 @@
(memory $0 (shared 23 256))
(export "user" (func $user))
(func $user (result i32)
- (atomic.notify
+ (memory.atomic.notify
(i32.const 0)
(i32.const 0)
)
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 36bc79e82..c1003ebb0 100644
--- a/test/passes/remove-unused-nonfunction-module-elements_all-features.wast
+++ b/test/passes/remove-unused-nonfunction-module-elements_all-features.wast
@@ -128,7 +128,7 @@
(local $0 i32)
(local $1 i64)
(drop
- (i32.atomic.wait
+ (memory.atomic.wait32
(local.get $0)
(local.get $0)
(local.get $1)
@@ -140,7 +140,7 @@
(memory $0 (shared 23 256))
(export "user" $user)
(func $user (result i32)
- (atomic.notify (i32.const 0) (i32.const 0))
+ (memory.atomic.notify (i32.const 0) (i32.const 0))
)
)
(module ;; more use checks