diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2020-09-25 14:12:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-25 14:12:57 -0700 |
commit | fbdcaf70c6b8888254d409bf57c80ea007058838 (patch) | |
tree | dec0e6c063ae80f110b460c69663dbb160ea0e16 /test | |
parent | 46d2cbab48ebbc8c9aab3f285cc42b2544bb526a (diff) | |
download | binaryen-fbdcaf70c6b8888254d409bf57c80ea007058838.tar.gz binaryen-fbdcaf70c6b8888254d409bf57c80ea007058838.tar.bz2 binaryen-fbdcaf70c6b8888254d409bf57c80ea007058838.zip |
Allow atomics to validate with unshared memory (#3172)
This relaxation has made it to Chrome stable, so it makes sense that we would
allow it in the tools.
Diffstat (limited to 'test')
-rw-r--r-- | test/atomics-unshared.wast | 10 | ||||
-rw-r--r-- | test/atomics-unshared.wast.from-wast | 13 | ||||
-rw-r--r-- | test/atomics-unshared.wast.fromBinary | 14 | ||||
-rw-r--r-- | test/atomics-unshared.wast.fromBinary.noDebugInfo | 14 |
4 files changed, 51 insertions, 0 deletions
diff --git a/test/atomics-unshared.wast b/test/atomics-unshared.wast new file mode 100644 index 000000000..7b6d7bc3b --- /dev/null +++ b/test/atomics-unshared.wast @@ -0,0 +1,10 @@ +(module + (memory $0 1 1) + (func $foo + (drop (i32.atomic.rmw.cmpxchg + (i32.const 0) + (i32.const 0) + (i32.const 0) + )) + ) +) diff --git a/test/atomics-unshared.wast.from-wast b/test/atomics-unshared.wast.from-wast new file mode 100644 index 000000000..a29819c9b --- /dev/null +++ b/test/atomics-unshared.wast.from-wast @@ -0,0 +1,13 @@ +(module + (type $none_=>_none (func)) + (memory $0 1 1) + (func $foo + (drop + (i32.atomic.rmw.cmpxchg + (i32.const 0) + (i32.const 0) + (i32.const 0) + ) + ) + ) +) diff --git a/test/atomics-unshared.wast.fromBinary b/test/atomics-unshared.wast.fromBinary new file mode 100644 index 000000000..df4096757 --- /dev/null +++ b/test/atomics-unshared.wast.fromBinary @@ -0,0 +1,14 @@ +(module + (type $none_=>_none (func)) + (memory $0 1 1) + (func $foo + (drop + (i32.atomic.rmw.cmpxchg + (i32.const 0) + (i32.const 0) + (i32.const 0) + ) + ) + ) +) + diff --git a/test/atomics-unshared.wast.fromBinary.noDebugInfo b/test/atomics-unshared.wast.fromBinary.noDebugInfo new file mode 100644 index 000000000..d9bb19b8e --- /dev/null +++ b/test/atomics-unshared.wast.fromBinary.noDebugInfo @@ -0,0 +1,14 @@ +(module + (type $none_=>_none (func)) + (memory $0 1 1) + (func $0 + (drop + (i32.atomic.rmw.cmpxchg + (i32.const 0) + (i32.const 0) + (i32.const 0) + ) + ) + ) +) + |