+2017-06-20 Uros Bizjak <ubizjak@gmail.com>
+
+ * gcc.target/i386/pr80732.c: Include fma4-check.h.
+ (main): Renamed to ...
+ (fma4_test): ... this.
+
2017-06-20 Julia Koval <julia.koval@intel.com>
* gcc.target/i386/pr73350-2.c: New test.
/* { dg-require-effective-target fpic } */
/* { dg-require-effective-target pie } */
+#include "fma4-check.h"
+
#include <dlfcn.h>
__attribute__((target_clones("default","fma"),noinline,optimize("fast-math")))
double (*initializer) (double, double, double) = { &f1 };
-int main()
+static void
+fma4_test (void)
{
char buffer[256];
const char *expectation = "4.93038e-32, 4.93038e-32, 4.93038e-32";
__builtin_sprintf(buffer, "%g, %g, %g", initializer (a, b, c), v2_2, v2_3);
if (__builtin_strcmp (buffer, expectation) != 0)
__builtin_abort ();
-
- return 0;
}