ssa-dom-thread-7.c: Adjust test because aarch64 has a slightly different IL that...
authorAldy Hernandez <aldyh@redhat.com>
Wed, 4 Jul 2018 08:04:55 +0000 (08:04 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Wed, 4 Jul 2018 08:04:55 +0000 (08:04 +0000)
* gcc.dg/tree-ssa/ssa-dom-thread-7.c: Adjust test because aarch64
has a slightly different IL that provides more threading
opportunities.

From-SVN: r262377

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-7.c

index 930215d4949a87b91712306ec52c144abecee1da..6c5efa4cc52006622be02c070cbd0db658cc579a 100644 (file)
@@ -1,3 +1,9 @@
+2018-07-04  Aldy Hernandez  <aldyh@redhat.com>
+
+       * gcc.dg/tree-ssa/ssa-dom-thread-7.c: Adjust test because aarch64
+       has a slightly different IL that provides more threading
+       opportunities.
+
 2018-07-04  Martin Liska  <mliska@suse.cz>
 
        PR middle-end/66240
index 9ee8d12010b5f776897aaa28f542c14258ae442f..e395de26ec0d6c10cb1a5f56fc1a6125a3b3a771 100644 (file)
@@ -2,11 +2,16 @@
 /* { dg-options "-O2 -fdump-tree-thread1-stats -fdump-tree-thread2-stats -fdump-tree-dom2-stats -fdump-tree-thread3-stats -fdump-tree-dom3-stats -fdump-tree-vrp2-stats -fno-guess-branch-probability" } */
 /* { dg-final { scan-tree-dump "Jumps threaded: 16"  "thread1" } } */
 /* { dg-final { scan-tree-dump "Jumps threaded: 9" "thread2" } } */
-/* { dg-final { scan-tree-dump "Jumps threaded: 3" "thread3" } } */
 /* { dg-final { scan-tree-dump "Jumps threaded: 1"  "dom2" } } */
 /* { dg-final { scan-tree-dump-not "Jumps threaded"  "dom3" } } */
 /* { dg-final { scan-tree-dump-not "Jumps threaded"  "vrp2" } } */
 
+/* Most architectures get 3 threadable paths here, whereas aarch64 and
+   possibly others get 5.  We really should rewrite threading tests to
+   test a specific IL sequence, not gobs of code whose IL can vary
+   from architecture to architecture.  */
+/* { dg-final { scan-tree-dump "Jumps threaded: \[35\]" "thread3" } } */
+
 enum STATE {
   S0=0,
   SI,