blob: 1b839bb9f9c9ac4f3482c9126c600eb4db15de4e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// |jit-test| skip-if: !wasmThreadsEnabled()
// Test that `atomic.fence` is a valid instruction of type `[] -> []`
wasmFullPass(
`(module
(func atomic.fence)
(export "run" (func 0))
)`);
// Test that `atomic.fence` works with non-shared memory
wasmFullPass(
`(module
(memory 1)
(func atomic.fence)
(export "run" (func 0))
)`);
// Test that `atomic.fence` works with shared memory
wasmFullPass(
`(module
(memory 1 1 shared)
(func atomic.fence)
(export "run" (func 0))
)`);
|