public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH][testsuite] Abort on failure in gcc.dg/pr30957-1.c
@ 2015-02-20  9:27 Tom de Vries
  2015-02-20  9:47 ` Jakub Jelinek
  0 siblings, 1 reply; 8+ messages in thread
From: Tom de Vries @ 2015-02-20  9:27 UTC (permalink / raw)
  To: GCC Patches

Hi,

this patch reverses the abort logic in pr30957-1.c, such that it aborts on 
failure rather than on success.

OK for stage4?

Thanks,
- Tom

2015-02-20  Tom de Vries  <tom@codesourcery.com>

	* gcc.dg/pr30957-1.c (main): Abort on failure.
---
  gcc/testsuite/gcc.dg/pr30957-1.c | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/testsuite/gcc.dg/pr30957-1.c b/gcc/testsuite/gcc.dg/pr30957-1.c
index 65b98fa..45fb6d6 100644
--- a/gcc/testsuite/gcc.dg/pr30957-1.c
+++ b/gcc/testsuite/gcc.dg/pr30957-1.c
@@ -1,4 +1,4 @@
-/* { dg-do run { xfail *-*-* } } */
+/* { dg-do run } */
  /* We don't (and don't want to) perform this optimisation on soft-float
     targets, where each addition is a library call.  This test requires
     -fassociative-math for enabling the variable-expansion as well as
@@ -27,8 +27,8 @@ int
  main ()
  {
    if (__builtin_copysignf (1.0, foo (0.0 / -5.0, 10)) != -1.0)
-    abort ();
-  exit (0);
+    exit (0);
+  abort ();
  }

  /* { dg-final { scan-rtl-dump "Expanding Accumulator" "loop2_unroll" } } */
-- 
1.9.1

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-02-22 12:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-20  9:27 [PATCH][testsuite] Abort on failure in gcc.dg/pr30957-1.c Tom de Vries
2015-02-20  9:47 ` Jakub Jelinek
2015-02-20 13:04   ` Tom de Vries
2015-02-20 13:22     ` Jakub Jelinek
2015-02-20 19:23     ` Mike Stump
2015-02-22 12:42       ` Tom de Vries
2015-02-20 18:22   ` Mike Stump
2015-02-20 19:27     ` Mike Stump

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).