summaryrefslogtreecommitdiff
path: root/test/lit/passes
diff options
context:
space:
mode:
Diffstat (limited to 'test/lit/passes')
-rw-r--r--test/lit/passes/Oz.wast15
1 files changed, 14 insertions, 1 deletions
diff --git a/test/lit/passes/Oz.wast b/test/lit/passes/Oz.wast
index 82e0acea5..7dc8c7c5e 100644
--- a/test/lit/passes/Oz.wast
+++ b/test/lit/passes/Oz.wast
@@ -1,7 +1,7 @@
;; NOTE: Assertions have been generated by update_lit_checks.py --all-items and should not be edited.
;; NOTE: This test was ported using port_test.py and could be cleaned up.
-;; RUN: foreach %s %t wasm-opt -Oz -S -o - | filecheck %s
+;; RUN: foreach %s %t wasm-opt -Oz --all-features -S -o - | filecheck %s
(module
(memory 100 100)
@@ -11,6 +11,8 @@
;; CHECK: (type $i32_i32_i32_i32_=>_i32 (func (param i32 i32 i32 i32) (result i32)))
+ ;; CHECK: (type $none_=>_v128 (func (result v128)))
+
;; CHECK: (memory $0 100 100)
;; CHECK: (export "localcse" (func $basics))
@@ -33,6 +35,8 @@
;; CHECK: (export "eliminate-redundant-checks-skip-2" (func $14))
+ ;; CHECK: (export "precompute-simd" (func $precompute-simd))
+
;; CHECK: (func $basics (; has Stack IR ;) (param $0 i32) (param $1 i32) (result i32)
;; CHECK-NEXT: (i32.add
;; CHECK-NEXT: (local.tee $0
@@ -270,4 +274,13 @@
)
(i32.const 0)
)
+
+ ;; CHECK: (func $precompute-simd (; has Stack IR ;) (result v128)
+ ;; CHECK-NEXT: (v128.const i32x4 0x00000000 0x00000000 0x00000000 0x00000000)
+ ;; CHECK-NEXT: )
+ (func $precompute-simd (export "precompute-simd") (result v128)
+ (i32x4.splat
+ (i32.const 0)
+ )
+ )
)