From: Richard Biener Date: Thu, 6 Dec 2018 10:20:39 +0000 (+0000) Subject: re PR middle-end/63184 (Fails to simplify comparison) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6a9025a01fbcf15c7a39b4c7af19cbdf7def8998;p=gcc.git re PR middle-end/63184 (Fails to simplify comparison) 2018-12-06 Richard Biener 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 922cc52a0a7..76c44a6ffba 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2018-12-06 Richard Biener + + 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 * g++.dg/parse/bitfield6b.C: New. diff --git a/gcc/testsuite/c-c++-common/pr19807-2.c b/gcc/testsuite/c-c++-common/pr19807-2.c index c8b2a57d654..d2c010140d0 100644 --- a/gcc/testsuite/c-c++-common/pr19807-2.c +++ b/gcc/testsuite/c-c++-common/pr19807-2.c @@ -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 *-*-* } } } */ diff --git a/gcc/testsuite/c-c++-common/pr19807-3.c b/gcc/testsuite/c-c++-common/pr19807-3.c index d882bd369bf..bb7f9827725 100644 --- a/gcc/testsuite/c-c++-common/pr19807-3.c +++ b/gcc/testsuite/c-c++-common/pr19807-3.c @@ -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 *-*-* } } } */