diff options
author | Max Graey <maxgraey@gmail.com> | 2021-11-17 02:08:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-16 16:08:30 -0800 |
commit | 87fce24735f7fb1815fc6d0fa7fda8a33bcaeefd (patch) | |
tree | 36f2aa453fb8d8fa01929db0714eac164a577319 /test/lit/passes/inlining-optimizing_optimize-level=3.wast | |
parent | a3ad58215d054db36da7596ec7d082c029e0affa (diff) | |
download | binaryen-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.wast | 9 |
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: ) |