summaryrefslogtreecommitdiff
path: root/test/bulk-memory.wast.fromBinary
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2019-02-05 12:35:09 -0800
committerGitHub <noreply@github.com>2019-02-05 12:35:09 -0800
commitf424f81886405fc26a415fc86900c0f8d0df14eb (patch)
tree5896c316f216fca9654f55e41809839d181ca53b /test/bulk-memory.wast.fromBinary
parent484f62f985cb2180139d1cf991ac04ee41635417 (diff)
downloadbinaryen-f424f81886405fc26a415fc86900c0f8d0df14eb.tar.gz
binaryen-f424f81886405fc26a415fc86900c0f8d0df14eb.tar.bz2
binaryen-f424f81886405fc26a415fc86900c0f8d0df14eb.zip
Bulk memory operations (#1892)
Bulk memory operations The only parts missing are the interpreter implementation and spec tests.
Diffstat (limited to 'test/bulk-memory.wast.fromBinary')
-rw-r--r--test/bulk-memory.wast.fromBinary30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/bulk-memory.wast.fromBinary b/test/bulk-memory.wast.fromBinary
new file mode 100644
index 000000000..0659c0184
--- /dev/null
+++ b/test/bulk-memory.wast.fromBinary
@@ -0,0 +1,30 @@
+(module
+ (type $0 (func))
+ (memory $0 1024 1024)
+ (data (i32.const 0) "hello, world")
+ (func $memory.init (; 0 ;) (type $0)
+ (memory.init 0
+ (i32.const 512)
+ (i32.const 0)
+ (i32.const 12)
+ )
+ )
+ (func $data.drop (; 1 ;) (type $0)
+ (data.drop 0)
+ )
+ (func $memory.copy (; 2 ;) (type $0)
+ (memory.copy
+ (i32.const 512)
+ (i32.const 0)
+ (i32.const 12)
+ )
+ )
+ (func $memory.fill (; 3 ;) (type $0)
+ (memory.fill
+ (i32.const 0)
+ (i32.const 42)
+ (i32.const 1024)
+ )
+ )
+)
+