summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/atomics-unshared.wast10
-rw-r--r--test/atomics-unshared.wast.from-wast13
-rw-r--r--test/atomics-unshared.wast.fromBinary14
-rw-r--r--test/atomics-unshared.wast.fromBinary.noDebugInfo14
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)
+ )
+ )
+ )
+)
+