From 8a259e30b1738597b9ddd9d31974d365038fa1d1 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Tue, 20 Jun 2017 21:04:07 +0200 Subject: [PATCH] pr80732.c: Include fma4-check.h. * gcc.target/i386/pr80732.c: Include fma4-check.h. (main): Renamed to ... (fma4_test): ... this. From-SVN: r249425 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.target/i386/pr80732.c | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b277662f8b6..79c54ca993b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2017-06-20 Uros Bizjak + + * gcc.target/i386/pr80732.c: Include fma4-check.h. + (main): Renamed to ... + (fma4_test): ... this. + 2017-06-20 Julia Koval * gcc.target/i386/pr73350-2.c: New test. diff --git a/gcc/testsuite/gcc.target/i386/pr80732.c b/gcc/testsuite/gcc.target/i386/pr80732.c index 2c59c5e224b..e1207298239 100644 --- a/gcc/testsuite/gcc.target/i386/pr80732.c +++ b/gcc/testsuite/gcc.target/i386/pr80732.c @@ -6,6 +6,8 @@ /* { dg-require-effective-target fpic } */ /* { dg-require-effective-target pie } */ +#include "fma4-check.h" + #include __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; } -- 2.30.2