* [PATCH] Make gcc.dg/tree-ssa/pr71078-3.c more robust
@ 2017-02-02 8:58 Richard Biener
0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2017-02-02 8:58 UTC (permalink / raw)
To: gcc-patches
On one machine I see gcc.dg/tree-ssa/pr71078-3.c FAILing with -m32
because libc provides
extern __inline __attribute__ ((__always_inline__)) __attribute__
((__gnu_inline__)) double __attribute__ ((__nothrow__ , __leaf__)) fabs
(double __x) { return __builtin_fabs (__x); }
which makes CSE necessary to catch the pattern (see PR79333). The
following adjusts the testcase to not rely on math.h.
Tested on x86_64-unknown-linux-gnu, applied.
Richard.
2017-02-02 Richard Biener <rguenther@suse.de>
* gcc.dg/tree-ssa/pr71078-3.c: Do not rely on math.h.
Index: gcc/testsuite/gcc.dg/tree-ssa/pr71078-3.c
===================================================================
--- gcc/testsuite/gcc.dg/tree-ssa/pr71078-3.c (revision 245090)
+++ gcc/testsuite/gcc.dg/tree-ssa/pr71078-3.c (working copy)
@@ -1,9 +1,10 @@
/* { dg-do compile } */
/* { dg-require-effective-target large_double } */
/* { dg-require-effective-target c99_runtime } */
-/* { dg-options "-O2 -ffast-math -fdump-tree-forwprop-details" } */
+/* { dg-options "-O2 -ffast-math -fdump-tree-forwprop1-details" } */
+
+extern double fabs (double);
-#include <math.h>
double f(float f)
{
double t1 = fabs(f);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-02-02 8:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-02 8:58 [PATCH] Make gcc.dg/tree-ssa/pr71078-3.c more robust Richard Biener
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).