+2018-09-25 Martin Jambor <mjambor@suse.cz>
+
+ PR testsuite/87339
+ * gcc.dg/warn-abs-1.c: Do not test _Float128. Remove dg-skip-if and
+ float125 target.
+ * gcc.target/i386/warn-abs-3.c: New test.
+
2018-09-25 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/81246
-/* { dg-do compile { target float128 } } */
-/* { dg-skip-if "incomplete long double support" { { newlib } && large_long_double } } */
+/* { dg-do compile } */
/* { dg-options "-Wabsolute-value" } */
#include <stdlib.h>
}
void
-tst_float_size (double *pd, long double *pld, _Float128 *pf128)
+tst_float_size (double *pd, long double *pld)
{
*pd = fabsf (*pd); /* { dg-warning "may cause truncation of value" } */
*pld = fabs (*pld); /* { dg-warning "may cause truncation of value" } */
*pld = fabs ((double) *pld);
- *pf128 = fabsl (*pf128); /* { dg-warning "may cause truncation of value" } */
}
void tst_notcomplex (int *pi, long *pl, long double *pld)
--- /dev/null
+/* { dg-do compile { target float128 } } */
+/* { dg-options "-Wabsolute-value" } */
+
+#include <stdlib.h>
+#include <inttypes.h>
+#include <math.h>
+
+void
+tst_float128_size (_Float128 *pf128)
+{
+ *pf128 = fabsl (*pf128); /* { dg-warning "may cause truncation of value" } */
+}