re PR middle-end/63184 (Fails to simplify comparison)
authorRichard Biener <rguenther@suse.de>
Thu, 6 Dec 2018 10:20:39 +0000 (10:20 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 6 Dec 2018 10:20:39 +0000 (10:20 +0000)
2018-12-06  Richard Biener  <rguenther@suse.de>

PR middle-end/63184
* c-c++-common/pr19807-2.c: Try link only on x86, add xfailed
optimized dump scanning.
* c-c++-common/pr19807-3.c: Likewise.

From-SVN: r266846

gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr19807-2.c
gcc/testsuite/c-c++-common/pr19807-3.c

index 922cc52..76c44a6 100644 (file)
@@ -1,3 +1,10 @@
+2018-12-06  Richard Biener  <rguenther@suse.de>
+
+       PR middle-end/63184
+       * c-c++-common/pr19807-2.c: Try link only on x86, add xfailed
+       optimized dump scanning.
+       * c-c++-common/pr19807-3.c: Likewise.
+
 2018-12-06  Paolo Carlini  <paolo.carlini@oracle.com>
 
        * g++.dg/parse/bitfield6b.C: New.
index c8b2a57..d2c0101 100644 (file)
@@ -1,5 +1,6 @@
-/* { dg-do link } */
-/* { dg-options "-O" } */
+/* Some targets can optimize this on RTL.  */
+/* { dg-do link { target { x86_64-*-* i?86-*-* } } } */
+/* { dg-options "-O -fdump-tree-optimized" } */
 
 extern void link_error(void);
 int i;
@@ -10,3 +11,5 @@ int main()
     link_error();
   return 0;
 }
+
+/* { dg-final { scan-tree-dump-not "link_error" "optimized" { xfail *-*-* } } } */
index d882bd3..bb7f982 100644 (file)
@@ -1,5 +1,6 @@
-/* { dg-do link } */
-/* { dg-options "-O" } */
+/* Some targets can optimize this on RTL.  */
+/* { dg-do link { target { x86_64-*-* i?86-*-* } } } */
+/* { dg-options "-O -fdump-tree-optimized" } */
 
 extern void link_error(void);
 int i;
@@ -10,3 +11,5 @@ int main()
     link_error();
   return 0;
 }
+
+/* { dg-final { scan-tree-dump-not "link_error" "optimized" { xfail *-*-* } } } */