summaryrefslogtreecommitdiff
path: root/test/passes/O3_print-stack-ir.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/O3_print-stack-ir.txt')
-rw-r--r--test/passes/O3_print-stack-ir.txt27
1 files changed, 16 insertions, 11 deletions
diff --git a/test/passes/O3_print-stack-ir.txt b/test/passes/O3_print-stack-ir.txt
index ca1cc46ba..3d56f1c0d 100644
--- a/test/passes/O3_print-stack-ir.txt
+++ b/test/passes/O3_print-stack-ir.txt
@@ -1,14 +1,19 @@
-$stacky-help:
-0 const (i32)
-1 call (i32)
-2 const (i32)
-3 call (i32)
-4 const (i32)
-5 call (i32)
-6 drop (none)
-7 unary (i32)
-8 binary (i32)
-
+(module
+ (type $0 (func (param i32) (result i32)))
+ (export "stacky-help" (func $stacky-help))
+ (func $stacky-help (; 0 ;) (; has Stack IR ;) (type $0) (param $0 i32) (result i32)
+ (local $1 i32)
+ i32.const 0
+ call $stacky-help
+ i32.const 1
+ call $stacky-help
+ i32.const 2
+ call $stacky-help
+ drop
+ i32.eqz
+ i32.add
+ )
+)
(module
(type $0 (func (param i32) (result i32)))
(export "stacky-help" (func $stacky-help))