+2019-07-06 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/91096
+ * gcc.dg/vect/vect-simd-10.c (FLT_MIN_VALUE): Define.
+ (bar, main): Use it instead of -__builtin_inff ().
+ * gcc.dg/vect/vect-simd-14.c (FLT_MIN_VALUE): Define.
+ (bar, main): Use it instead of -__builtin_inff ().
+
2019-07-05 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/67184 (again)
#include "tree-vect.h"
#endif
+#ifdef __FAST_MATH__
+#define FLT_MIN_VALUE (-__FLT_MAX__)
+#else
+#define FLT_MIN_VALUE (-__builtin_inff ())
+#endif
+
float r = 1.0f, a[1024], b[1024];
__attribute__((noipa)) void
__attribute__((noipa)) float
bar (void)
{
- float s = -__builtin_inff ();
+ float s = FLT_MIN_VALUE;
#pragma omp simd reduction (inscan, max:s)
for (int i = 0; i < 1024; i++)
{
}
if (bar () != 592.0f)
abort ();
- s = -__builtin_inff ();
+ s = FLT_MIN_VALUE;
for (int i = 0; i < 1024; ++i)
{
if (s < a[i])
#include "tree-vect.h"
#endif
+#ifdef __FAST_MATH__
+#define FLT_MIN_VALUE (-__FLT_MAX__)
+#else
+#define FLT_MIN_VALUE (-__builtin_inff ())
+#endif
+
float r = 1.0f, a[1024], b[1024];
__attribute__((noipa)) void
__attribute__((noipa)) float
bar (void)
{
- float s = -__builtin_inff ();
+ float s = FLT_MIN_VALUE;
#pragma omp simd reduction (inscan, max:s)
for (int i = 0; i < 1024; i++)
{
}
if (bar () != 592.0f)
abort ();
- s = -__builtin_inff ();
+ s = FLT_MIN_VALUE;
for (int i = 0; i < 1024; ++i)
{
if (b[i] != s)