summaryrefslogtreecommitdiff
path: root/test/passes
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes')
-rw-r--r--test/passes/optimize-instructions.txt48
-rw-r--r--test/passes/optimize-instructions.wast9
2 files changed, 57 insertions, 0 deletions
diff --git a/test/passes/optimize-instructions.txt b/test/passes/optimize-instructions.txt
index c64115f49..bad6c5f6f 100644
--- a/test/passes/optimize-instructions.txt
+++ b/test/passes/optimize-instructions.txt
@@ -51,5 +51,53 @@
(i32.const 1)
(i32.const 2)
)
+ (i32.eqz
+ (f32.gt
+ (f32.const 1)
+ (f32.const 2)
+ )
+ )
+ (i32.eqz
+ (f32.ge
+ (f32.const 1)
+ (f32.const 2)
+ )
+ )
+ (i32.eqz
+ (f32.lt
+ (f32.const 1)
+ (f32.const 2)
+ )
+ )
+ (i32.eqz
+ (f32.le
+ (f32.const 1)
+ (f32.const 2)
+ )
+ )
+ (i32.eqz
+ (f64.gt
+ (f64.const 1)
+ (f64.const 2)
+ )
+ )
+ (i32.eqz
+ (f64.ge
+ (f64.const 1)
+ (f64.const 2)
+ )
+ )
+ (i32.eqz
+ (f64.lt
+ (f64.const 1)
+ (f64.const 2)
+ )
+ )
+ (i32.eqz
+ (f64.le
+ (f64.const 1)
+ (f64.const 2)
+ )
+ )
)
)
diff --git a/test/passes/optimize-instructions.wast b/test/passes/optimize-instructions.wast
index b579a2054..614d59b11 100644
--- a/test/passes/optimize-instructions.wast
+++ b/test/passes/optimize-instructions.wast
@@ -29,6 +29,15 @@
(i32.eqz (i32.ge_u (i32.const 1) (i32.const 2)))
(i32.eqz (i32.lt_u (i32.const 1) (i32.const 2)))
(i32.eqz (i32.le_u (i32.const 1) (i32.const 2)))
+
+ (i32.eqz (f32.gt (f32.const 1) (f32.const 2)))
+ (i32.eqz (f32.ge (f32.const 1) (f32.const 2)))
+ (i32.eqz (f32.lt (f32.const 1) (f32.const 2)))
+ (i32.eqz (f32.le (f32.const 1) (f32.const 2)))
+ (i32.eqz (f64.gt (f64.const 1) (f64.const 2)))
+ (i32.eqz (f64.ge (f64.const 1) (f64.const 2)))
+ (i32.eqz (f64.lt (f64.const 1) (f64.const 2)))
+ (i32.eqz (f64.le (f64.const 1) (f64.const 2)))
)
)