summaryrefslogtreecommitdiff
path: root/test/lit/passes/inlining-optimizing_optimize-level=3.wast
diff options
context:
space:
mode:
authorMax Graey <maxgraey@gmail.com>2021-11-17 02:08:30 +0200
committerGitHub <noreply@github.com>2021-11-16 16:08:30 -0800
commit87fce24735f7fb1815fc6d0fa7fda8a33bcaeefd (patch)
tree36f2aa453fb8d8fa01929db0714eac164a577319 /test/lit/passes/inlining-optimizing_optimize-level=3.wast
parenta3ad58215d054db36da7596ec7d082c029e0affa (diff)
downloadbinaryen-87fce24735f7fb1815fc6d0fa7fda8a33bcaeefd.tar.gz
binaryen-87fce24735f7fb1815fc6d0fa7fda8a33bcaeefd.tar.bz2
binaryen-87fce24735f7fb1815fc6d0fa7fda8a33bcaeefd.zip
[OptimizeInstructions] Combine some relational ops joined Or/And (Part 2) (#4336)
(i32(x) != 0) | (i32(y) != 0) ==> i32(x | y) != 0 (i64(x) != 0) | (i64(y) != 0) ==> i64(x | y) != 0
Diffstat (limited to 'test/lit/passes/inlining-optimizing_optimize-level=3.wast')
-rw-r--r--test/lit/passes/inlining-optimizing_optimize-level=3.wast9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/lit/passes/inlining-optimizing_optimize-level=3.wast b/test/lit/passes/inlining-optimizing_optimize-level=3.wast
index 980075d14..632ec16ec 100644
--- a/test/lit/passes/inlining-optimizing_optimize-level=3.wast
+++ b/test/lit/passes/inlining-optimizing_optimize-level=3.wast
@@ -8849,19 +8849,16 @@
;; CHECK-NEXT: (i32.or
;; CHECK-NEXT: (local.get $6)
;; CHECK-NEXT: (local.tee $12
- ;; CHECK-NEXT: (i32.or
- ;; CHECK-NEXT: (i32.ne
+ ;; CHECK-NEXT: (i32.ne
+ ;; CHECK-NEXT: (i32.or
;; CHECK-NEXT: (i32.load
;; CHECK-NEXT: (local.get $13)
;; CHECK-NEXT: )
- ;; CHECK-NEXT: (i32.const 0)
- ;; CHECK-NEXT: )
- ;; CHECK-NEXT: (i32.ne
;; CHECK-NEXT: (i32.load offset=4
;; CHECK-NEXT: (local.get $13)
;; CHECK-NEXT: )
- ;; CHECK-NEXT: (i32.const 0)
;; CHECK-NEXT: )
+ ;; CHECK-NEXT: (i32.const 0)
;; CHECK-NEXT: )
;; CHECK-NEXT: )
;; CHECK-NEXT: )