summaryrefslogtreecommitdiff
path: root/test/passes/optimize-instructions.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/optimize-instructions.txt')
-rw-r--r--test/passes/optimize-instructions.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/passes/optimize-instructions.txt b/test/passes/optimize-instructions.txt
index 5a0a45e3d..51a5113b1 100644
--- a/test/passes/optimize-instructions.txt
+++ b/test/passes/optimize-instructions.txt
@@ -2997,6 +2997,31 @@
)
)
)
+ (func $add-sub-zero-reorder-1 (; 73 ;) (type $3) (param $temp i32) (result i32)
+ (i32.add
+ (i32.add
+ (i32.sub
+ (i32.const 0)
+ (get_local $temp)
+ )
+ (tee_local $temp
+ (i32.const 1)
+ )
+ )
+ (i32.const 2)
+ )
+ )
+ (func $add-sub-zero-reorder-2 (; 74 ;) (type $3) (param $temp i32) (result i32)
+ (i32.add
+ (i32.sub
+ (tee_local $temp
+ (i32.const 1)
+ )
+ (get_local $temp)
+ )
+ (i32.const 2)
+ )
+ )
)
(module
(type $0 (func))