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.txt32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/passes/optimize-instructions.txt b/test/passes/optimize-instructions.txt
index 50858c81d..88709e2fe 100644
--- a/test/passes/optimize-instructions.txt
+++ b/test/passes/optimize-instructions.txt
@@ -2264,6 +2264,38 @@
)
)
)
+ (func $subzero1 (; 56 ;) (type $3) (param $0 i32) (result i32)
+ (i32.sub
+ (i32.const 32)
+ (i32.clz
+ (get_local $0)
+ )
+ )
+ )
+ (func $subzero2 (; 57 ;) (type $3) (param $0 i32) (result i32)
+ (i32.sub
+ (i32.const 32)
+ (i32.clz
+ (get_local $0)
+ )
+ )
+ )
+ (func $subzero3 (; 58 ;) (type $6) (param $0 i32) (param $1 i32) (result i32)
+ (i32.sub
+ (get_local $1)
+ (i32.clz
+ (get_local $0)
+ )
+ )
+ )
+ (func $subzero4 (; 59 ;) (type $6) (param $0 i32) (param $1 i32) (result i32)
+ (i32.sub
+ (get_local $0)
+ (i32.clz
+ (get_local $1)
+ )
+ )
+ )
)
(module
(type $0 (func))