summaryrefslogtreecommitdiff
path: root/test/lit/memory64-ops.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/lit/memory64-ops.wast')
-rw-r--r--test/lit/memory64-ops.wast32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/lit/memory64-ops.wast b/test/lit/memory64-ops.wast
new file mode 100644
index 000000000..5ed44df59
--- /dev/null
+++ b/test/lit/memory64-ops.wast
@@ -0,0 +1,32 @@
+;; NOTE: Assertions have been generated by update_lit_checks.py and should not be edited.
+
+;; RUN: foreach %s %t wasm-opt -all --roundtrip -S -o - | filecheck %s
+
+(module
+ ;; CHECK: (memory $mem i64 1)
+ (memory $mem i64 1)
+
+ ;; CHECK: (func $get_heap_size (result i64)
+ ;; CHECK-NEXT: (i64.shl
+ ;; CHECK-NEXT: (memory.size)
+ ;; CHECK-NEXT: (i64.const 16)
+ ;; CHECK-NEXT: )
+ ;; CHECK-NEXT: )
+ (func $get_heap_size (result i64)
+ (i64.shl
+ (memory.size $mem)
+ (i64.const 16)
+ )
+ )
+
+ ;; CHECK: (func $grow-heap (result i64)
+ ;; CHECK-NEXT: (memory.grow
+ ;; CHECK-NEXT: (i64.const 32)
+ ;; CHECK-NEXT: )
+ ;; CHECK-NEXT: )
+ (func $grow-heap (result i64)
+ (memory.grow $mem
+ (i64.const 32)
+ )
+ )
+)