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