Commit 8a259e30 by Uros Bizjak Committed by Uros Bizjak

pr80732.c: Include fma4-check.h.

	* gcc.target/i386/pr80732.c: Include fma4-check.h.
	(main): Renamed to ...
	(fma4_test): ... this.

From-SVN: r249425
parent 1259ccfc
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.
......
......@@ -6,6 +6,8 @@
/* { 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")))
......@@ -51,7 +53,8 @@ double k2(double a, double b, double c, void **p)
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";
......@@ -87,6 +90,4 @@ int main()
__builtin_sprintf(buffer, "%g, %g, %g", initializer (a, b, c), v2_2, v2_3);
if (__builtin_strcmp (buffer, expectation) != 0)
__builtin_abort ();
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment