diff options
author | Max Graey <maxgraey@gmail.com> | 2020-10-31 01:06:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-30 16:06:30 -0700 |
commit | 45f808c58c752b1b146b71b9d6e9e30758a808c2 (patch) | |
tree | eff7856c5e811904bf5064f8b853b3bcb3652af5 /test/passes/optimize-instructions_all-features.wast | |
parent | ebaddfbd09359a9de6424e0c302255b8f8caf6f6 (diff) | |
download | binaryen-45f808c58c752b1b146b71b9d6e9e30758a808c2.tar.gz binaryen-45f808c58c752b1b146b71b9d6e9e30758a808c2.tar.bz2 binaryen-45f808c58c752b1b146b71b9d6e9e30758a808c2.zip |
Canonicalize relationals as well (#3303)
Diffstat (limited to 'test/passes/optimize-instructions_all-features.wast')
-rw-r--r-- | test/passes/optimize-instructions_all-features.wast | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/test/passes/optimize-instructions_all-features.wast b/test/passes/optimize-instructions_all-features.wast index 9b172e4bd..cf35668d5 100644 --- a/test/passes/optimize-instructions_all-features.wast +++ b/test/passes/optimize-instructions_all-features.wast @@ -495,6 +495,39 @@ (i32.const 23) ) )) + (drop (i32.gt_s + (i32.const 1) + (local.get $x) + )) + (drop (i32.gt_u + (i32.const 0) + (local.get $x) + )) + (drop (i32.ne + (i32.const -1) + (local.get $x) + )) + (drop (f64.ne + (f64.const -1) + (local.get $fx) + )) + (drop (f64.lt + (f64.const -2) + (local.get $fx) + )) + (drop (f64.ge + (f64.const inf) + (local.get $fx) + )) + (drop (f64.le + (f64.const nan) + (local.get $fx) + )) + ;; skip + (drop (f64.ge + (f64.const 1) + (f64.const 2) + )) (drop (i32.add (i32.ctz (local.get $x)) (i32.ctz (local.get $y)))) (drop (i32.add (i32.ctz (local.get $y)) (i32.ctz (local.get $x)))) (drop (i32.add (i32.ctz (local.get $x)) (i32.eqz (local.get $y)))) |