summaryrefslogtreecommitdiff
path: root/test/passes
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes')
-rw-r--r--test/passes/post-emscripten.txt29
-rw-r--r--test/passes/post-emscripten.wast42
2 files changed, 71 insertions, 0 deletions
diff --git a/test/passes/post-emscripten.txt b/test/passes/post-emscripten.txt
new file mode 100644
index 000000000..567a8b849
--- /dev/null
+++ b/test/passes/post-emscripten.txt
@@ -0,0 +1,29 @@
+(module
+ (memory 16777216 16777216)
+ (func $b0 (param $x i32)
+ (i32.load offset=1
+ (get_local $x)
+ )
+ (i32.load offset=8
+ (get_local $x)
+ )
+ (i32.load offset=1023
+ (get_local $x)
+ )
+ (i32.load
+ (i32.add
+ (get_local $x)
+ (i32.const 1024)
+ )
+ )
+ (i32.load
+ (i32.add
+ (get_local $x)
+ (i32.const 2048)
+ )
+ )
+ (i32.load offset=4
+ (get_local $x)
+ )
+ )
+)
diff --git a/test/passes/post-emscripten.wast b/test/passes/post-emscripten.wast
new file mode 100644
index 000000000..df56817a7
--- /dev/null
+++ b/test/passes/post-emscripten.wast
@@ -0,0 +1,42 @@
+(module
+ (memory 16777216 16777216)
+ (func $b0 (param $x i32)
+ (i32.load
+ (i32.add
+ (get_local $x)
+ (i32.const 1)
+ )
+ )
+ (i32.load
+ (i32.add
+ (get_local $x)
+ (i32.const 8)
+ )
+ )
+ (i32.load
+ (i32.add
+ (get_local $x)
+ (i32.const 1023)
+ )
+ )
+ (i32.load
+ (i32.add
+ (get_local $x)
+ (i32.const 1024)
+ )
+ )
+ (i32.load
+ (i32.add
+ (get_local $x)
+ (i32.const 2048)
+ )
+ )
+ (i32.load
+ (i32.add
+ (i32.const 4)
+ (get_local $x)
+ )
+ )
+ )
+)
+