summaryrefslogtreecommitdiff
path: root/test/passes/flatten_i64-to-i32-lowering.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/flatten_i64-to-i32-lowering.wast')
-rw-r--r--test/passes/flatten_i64-to-i32-lowering.wast13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/passes/flatten_i64-to-i32-lowering.wast b/test/passes/flatten_i64-to-i32-lowering.wast
index 2f3bb37ca..9b75e683f 100644
--- a/test/passes/flatten_i64-to-i32-lowering.wast
+++ b/test/passes/flatten_i64-to-i32-lowering.wast
@@ -1,4 +1,5 @@
(module
+ (memory 1 1)
(import "env" "func" (func $import (result i64)))
(func $defined (result i64)
(i64.add (i64.const 1) (i64.const 2))
@@ -24,6 +25,18 @@
(unreachable)
)
)
+ (func $mem
+ (drop (i64.load align=8 (i32.const 0)))
+ (drop (i64.load align=4 (i32.const 0)))
+ (drop (i64.load align=2 (i32.const 0)))
+ (drop (i64.load align=1 (i32.const 0)))
+ (drop (i64.load (i32.const 0)))
+ (i64.store align=8 (i32.const 0) (i64.const 1))
+ (i64.store align=4 (i32.const 0) (i64.const 2))
+ (i64.store align=2 (i32.const 0) (i64.const 3))
+ (i64.store align=1 (i32.const 0) (i64.const 4))
+ (i64.store (i32.const 0) (i64.const 5))
+ )
)
(module
(global $f (mut i64) (i64.const 0x12345678ABCDEFAF))