diff options
Diffstat (limited to 'test/passes/O1_print-stack-ir.txt')
-rw-r--r-- | test/passes/O1_print-stack-ir.txt | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/test/passes/O1_print-stack-ir.txt b/test/passes/O1_print-stack-ir.txt index ab3bf9255..503842124 100644 --- a/test/passes/O1_print-stack-ir.txt +++ b/test/passes/O1_print-stack-ir.txt @@ -1,5 +1,30 @@ -$stacky-help: - (no stack ir) +(module + (type $0 (func (param i32) (result i32))) + (export "stacky-help" (func $stacky-help)) + (func $stacky-help (; 0 ;) (type $0) (param $0 i32) (result i32) + (local $1 i32) + (i32.add + (call $stacky-help + (i32.const 0) + ) + (block (result i32) + (set_local $1 + (call $stacky-help + (i32.const 1) + ) + ) + (drop + (call $stacky-help + (i32.const 2) + ) + ) + (i32.eqz + (get_local $1) + ) + ) + ) + ) +) (module (type $0 (func (param i32) (result i32))) (export "stacky-help" (func $stacky-help)) |