From b69e0fabc2f58fe29dea74ff87f85a9b9a51bc02 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Wed, 7 Aug 2019 06:35:39 +0000 Subject: [PATCH] wrap math.h for M_PI et al in target/i386 tests Most but not all of the tests that expect M_PI, M_PI_2 and/or M_PI_4 to be defined in math.h explicitly exclude one target system that does not satisfy this non-standard assumption. This patch introduces a wrapper header that includes math.h and then conditionally supplies the missing non-standard macro definitions. With that, we can drop the dg-skip-if "no M_PI" exclusions. for gcc/testsuite/ChangeLog * gcc.target/i386/math_m_pi.h: New. * gcc.target/i386/sse4_1-round.h: Use it. * gcc.target/i386/pr73350.c: Likewise. * gcc.target/i386/avx512f-vfixupimmpd-2.c: Likewise. * gcc.target/i386/avx512f-vfixupimmps-2.c: Likewise. * gcc.target/i386/avx512f-vfixupimmsd-2.c: Likewise. * gcc.target/i386/avx512f-vfixupimmss-2.c: Likewise. * gcc.target/i386/avx512f-vfixupimmss-2.c: Likewise. * gcc.target/i386/avx-ceil-sfix-2-vec.c: Likewise. Drop dg-skip-if "no M_PI". * gcc.target/i386/avx-cvt-2-vec.c: Likewise. * gcc.target/i386/avx-floor-sfix-2-vec.c: Likewise. * gcc.target/i386/avx-rint-sfix-2-vec.c: Likewise. * gcc.target/i386/avx-round-sfix-2-vec.c: Likewise. * gcc.target/i386/avx512f-ceil-sfix-vec-1.c: Likewise. * gcc.target/i386/avx512f-ceil-vec-1.c: Likewise. * gcc.target/i386/avx512f-ceilf-sfix-vec-1.c: Likewise. * gcc.target/i386/avx512f-ceilf-vec-1.c: Likewise. * gcc.target/i386/avx512f-floor-sfix-vec-1.c: Likewise. * gcc.target/i386/avx512f-floor-vec-1.c: Likewise. * gcc.target/i386/avx512f-floorf-sfix-vec-1.c: Likewise. * gcc.target/i386/avx512f-floorf-vec-1.c: Likewise. * gcc.target/i386/avx512f-rint-sfix-vec-1.c: Likewise. * gcc.target/i386/avx512f-rintf-sfix-vec-1.c: Likewise. * gcc.target/i386/avx512f-round-sfix-vec-1.c: Likewise. * gcc.target/i386/avx512f-roundf-sfix-vec-1.c: Likewise. * gcc.target/i386/avx512f-trunc-vec-1.c: Likewise. * gcc.target/i386/avx512f-truncf-vec-1.c: Likewise. * gcc.target/i386/sse2-cvt-vec.c: Likewise. * gcc.target/i386/sse4_1-ceil-sfix-vec.c: Likewise. * gcc.target/i386/sse4_1-ceil-vec.c: Likewise. * gcc.target/i386/sse4_1-ceilf-sfix-vec.c: Likewise. * gcc.target/i386/sse4_1-ceilf-vec.c: Likewise. * gcc.target/i386/sse4_1-floor-sfix-vec.c: Likewise. * gcc.target/i386/sse4_1-floor-vec.c: Likewise. * gcc.target/i386/sse4_1-floorf-sfix-vec.c: Likewise. * gcc.target/i386/sse4_1-floorf-vec.c: Likewise. * gcc.target/i386/sse4_1-rint-sfix-vec.c: Likewise. * gcc.target/i386/sse4_1-rint-vec.c: Likewise. * gcc.target/i386/sse4_1-rintf-sfix-vec.c: Likewise. * gcc.target/i386/sse4_1-rintf-vec.c: Likewise. * gcc.target/i386/sse4_1-round-sfix-vec.c: Likewise. * gcc.target/i386/sse4_1-round-vec.c: Likewise. * gcc.target/i386/sse4_1-roundf-sfix-vec.c: Likewise. * gcc.target/i386/sse4_1-roundf-vec.c: Likewise. * gcc.target/i386/sse4_1-roundsd-4.c: Likewise. * gcc.target/i386/sse4_1-roundss-4.c: Likewise. * gcc.target/i386/sse4_1-trunc-vec.c: Likewise. * gcc.target/i386/sse4_1-truncf-vec.c: Likewise. From-SVN: r274157 --- gcc/testsuite/ChangeLog | 52 +++++++++++++++++++ .../gcc.target/i386/avx-ceil-sfix-2-vec.c | 3 +- .../gcc.target/i386/avx-ceil-sfix-vec.c | 1 - gcc/testsuite/gcc.target/i386/avx-ceil-vec.c | 1 - .../gcc.target/i386/avx-ceilf-sfix-vec.c | 1 - gcc/testsuite/gcc.target/i386/avx-ceilf-vec.c | 1 - gcc/testsuite/gcc.target/i386/avx-cvt-2-vec.c | 3 +- gcc/testsuite/gcc.target/i386/avx-cvt-vec.c | 1 - .../gcc.target/i386/avx-floor-sfix-2-vec.c | 3 +- .../gcc.target/i386/avx-floor-sfix-vec.c | 1 - gcc/testsuite/gcc.target/i386/avx-floor-vec.c | 1 - .../gcc.target/i386/avx-floorf-sfix-vec.c | 1 - .../gcc.target/i386/avx-floorf-vec.c | 1 - .../gcc.target/i386/avx-rint-sfix-2-vec.c | 3 +- .../gcc.target/i386/avx-rint-sfix-vec.c | 1 - gcc/testsuite/gcc.target/i386/avx-rint-vec.c | 1 - .../gcc.target/i386/avx-rintf-sfix-vec.c | 1 - gcc/testsuite/gcc.target/i386/avx-rintf-vec.c | 1 - .../gcc.target/i386/avx-round-sfix-2-vec.c | 3 +- .../gcc.target/i386/avx-round-sfix-vec.c | 1 - gcc/testsuite/gcc.target/i386/avx-round-vec.c | 1 - .../gcc.target/i386/avx-roundf-sfix-vec.c | 1 - .../gcc.target/i386/avx-roundf-vec.c | 1 - gcc/testsuite/gcc.target/i386/avx-trunc-vec.c | 1 - .../gcc.target/i386/avx-truncf-vec.c | 1 - .../gcc.target/i386/avx512f-ceil-sfix-vec-1.c | 3 +- .../gcc.target/i386/avx512f-ceil-vec-1.c | 3 +- .../i386/avx512f-ceilf-sfix-vec-1.c | 3 +- .../gcc.target/i386/avx512f-ceilf-vec-1.c | 3 +- .../i386/avx512f-floor-sfix-vec-1.c | 3 +- .../gcc.target/i386/avx512f-floor-vec-1.c | 3 +- .../i386/avx512f-floorf-sfix-vec-1.c | 3 +- .../gcc.target/i386/avx512f-floorf-vec-1.c | 3 +- .../gcc.target/i386/avx512f-rint-sfix-vec-1.c | 3 +- .../i386/avx512f-rintf-sfix-vec-1.c | 3 +- .../i386/avx512f-round-sfix-vec-1.c | 3 +- .../i386/avx512f-roundf-sfix-vec-1.c | 3 +- .../gcc.target/i386/avx512f-trunc-vec-1.c | 3 +- .../gcc.target/i386/avx512f-truncf-vec-1.c | 3 +- .../gcc.target/i386/avx512f-vfixupimmpd-2.c | 2 +- .../gcc.target/i386/avx512f-vfixupimmps-2.c | 2 +- .../gcc.target/i386/avx512f-vfixupimmsd-2.c | 2 +- .../gcc.target/i386/avx512f-vfixupimmss-2.c | 2 +- gcc/testsuite/gcc.target/i386/math_m_pi.h | 10 ++++ gcc/testsuite/gcc.target/i386/pr73350.c | 2 +- gcc/testsuite/gcc.target/i386/sse2-cvt-vec.c | 3 +- .../gcc.target/i386/sse4_1-ceil-sfix-vec.c | 3 +- .../gcc.target/i386/sse4_1-ceil-vec.c | 3 +- .../gcc.target/i386/sse4_1-ceilf-sfix-vec.c | 3 +- .../gcc.target/i386/sse4_1-ceilf-vec.c | 3 +- .../gcc.target/i386/sse4_1-floor-sfix-vec.c | 3 +- .../gcc.target/i386/sse4_1-floor-vec.c | 3 +- .../gcc.target/i386/sse4_1-floorf-sfix-vec.c | 3 +- .../gcc.target/i386/sse4_1-floorf-vec.c | 3 +- .../gcc.target/i386/sse4_1-rint-sfix-vec.c | 3 +- .../gcc.target/i386/sse4_1-rint-vec.c | 3 +- .../gcc.target/i386/sse4_1-rintf-sfix-vec.c | 3 +- .../gcc.target/i386/sse4_1-rintf-vec.c | 3 +- .../gcc.target/i386/sse4_1-round-sfix-vec.c | 3 +- .../gcc.target/i386/sse4_1-round-vec.c | 3 +- gcc/testsuite/gcc.target/i386/sse4_1-round.h | 2 +- .../gcc.target/i386/sse4_1-roundf-sfix-vec.c | 3 +- .../gcc.target/i386/sse4_1-roundf-vec.c | 3 +- .../gcc.target/i386/sse4_1-roundpd-1.c | 1 - .../gcc.target/i386/sse4_1-roundpd-2.c | 1 - .../gcc.target/i386/sse4_1-roundpd-3.c | 1 - .../gcc.target/i386/sse4_1-roundps-1.c | 1 - .../gcc.target/i386/sse4_1-roundps-2.c | 1 - .../gcc.target/i386/sse4_1-roundps-3.c | 1 - .../gcc.target/i386/sse4_1-roundsd-1.c | 1 - .../gcc.target/i386/sse4_1-roundsd-2.c | 1 - .../gcc.target/i386/sse4_1-roundsd-3.c | 1 - .../gcc.target/i386/sse4_1-roundsd-4.c | 3 +- .../gcc.target/i386/sse4_1-roundss-1.c | 1 - .../gcc.target/i386/sse4_1-roundss-2.c | 1 - .../gcc.target/i386/sse4_1-roundss-3.c | 1 - .../gcc.target/i386/sse4_1-roundss-4.c | 3 +- .../gcc.target/i386/sse4_1-trunc-vec.c | 3 +- .../gcc.target/i386/sse4_1-truncf-vec.c | 3 +- 79 files changed, 108 insertions(+), 117 deletions(-) create mode 100644 gcc/testsuite/gcc.target/i386/math_m_pi.h diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cb8040c00fd..d7eda8e784e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,55 @@ +2019-08-07 Alexandre Oliva + + * gcc.target/i386/math_m_pi.h: New. + * gcc.target/i386/sse4_1-round.h: Use it. + * gcc.target/i386/pr73350.c: Likewise. + * gcc.target/i386/avx512f-vfixupimmpd-2.c: Likewise. + * gcc.target/i386/avx512f-vfixupimmps-2.c: Likewise. + * gcc.target/i386/avx512f-vfixupimmsd-2.c: Likewise. + * gcc.target/i386/avx512f-vfixupimmss-2.c: Likewise. + * gcc.target/i386/avx512f-vfixupimmss-2.c: Likewise. + * gcc.target/i386/avx-ceil-sfix-2-vec.c: Likewise. Drop + dg-skip-if "no M_PI". + * gcc.target/i386/avx-cvt-2-vec.c: Likewise. + * gcc.target/i386/avx-floor-sfix-2-vec.c: Likewise. + * gcc.target/i386/avx-rint-sfix-2-vec.c: Likewise. + * gcc.target/i386/avx-round-sfix-2-vec.c: Likewise. + * gcc.target/i386/avx512f-ceil-sfix-vec-1.c: Likewise. + * gcc.target/i386/avx512f-ceil-vec-1.c: Likewise. + * gcc.target/i386/avx512f-ceilf-sfix-vec-1.c: Likewise. + * gcc.target/i386/avx512f-ceilf-vec-1.c: Likewise. + * gcc.target/i386/avx512f-floor-sfix-vec-1.c: Likewise. + * gcc.target/i386/avx512f-floor-vec-1.c: Likewise. + * gcc.target/i386/avx512f-floorf-sfix-vec-1.c: Likewise. + * gcc.target/i386/avx512f-floorf-vec-1.c: Likewise. + * gcc.target/i386/avx512f-rint-sfix-vec-1.c: Likewise. + * gcc.target/i386/avx512f-rintf-sfix-vec-1.c: Likewise. + * gcc.target/i386/avx512f-round-sfix-vec-1.c: Likewise. + * gcc.target/i386/avx512f-roundf-sfix-vec-1.c: Likewise. + * gcc.target/i386/avx512f-trunc-vec-1.c: Likewise. + * gcc.target/i386/avx512f-truncf-vec-1.c: Likewise. + * gcc.target/i386/sse2-cvt-vec.c: Likewise. + * gcc.target/i386/sse4_1-ceil-sfix-vec.c: Likewise. + * gcc.target/i386/sse4_1-ceil-vec.c: Likewise. + * gcc.target/i386/sse4_1-ceilf-sfix-vec.c: Likewise. + * gcc.target/i386/sse4_1-ceilf-vec.c: Likewise. + * gcc.target/i386/sse4_1-floor-sfix-vec.c: Likewise. + * gcc.target/i386/sse4_1-floor-vec.c: Likewise. + * gcc.target/i386/sse4_1-floorf-sfix-vec.c: Likewise. + * gcc.target/i386/sse4_1-floorf-vec.c: Likewise. + * gcc.target/i386/sse4_1-rint-sfix-vec.c: Likewise. + * gcc.target/i386/sse4_1-rint-vec.c: Likewise. + * gcc.target/i386/sse4_1-rintf-sfix-vec.c: Likewise. + * gcc.target/i386/sse4_1-rintf-vec.c: Likewise. + * gcc.target/i386/sse4_1-round-sfix-vec.c: Likewise. + * gcc.target/i386/sse4_1-round-vec.c: Likewise. + * gcc.target/i386/sse4_1-roundf-sfix-vec.c: Likewise. + * gcc.target/i386/sse4_1-roundf-vec.c: Likewise. + * gcc.target/i386/sse4_1-roundsd-4.c: Likewise. + * gcc.target/i386/sse4_1-roundss-4.c: Likewise. + * gcc.target/i386/sse4_1-trunc-vec.c: Likewise. + * gcc.target/i386/sse4_1-truncf-vec.c: Likewise. + 2019-08-06 Steven G. Kargl PR fortran/91359 diff --git a/gcc/testsuite/gcc.target/i386/avx-ceil-sfix-2-vec.c b/gcc/testsuite/gcc.target/i386/avx-ceil-sfix-2-vec.c index 45b7af7b06a..8d3b0a6d79f 100644 --- a/gcc/testsuite/gcc.target/i386/avx-ceil-sfix-2-vec.c +++ b/gcc/testsuite/gcc.target/i386/avx-ceil-sfix-2-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */ /* { dg-require-effective-target avx } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "avx-check.h" @@ -14,7 +13,7 @@ #include CHECK_H #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" extern double ceil (double); diff --git a/gcc/testsuite/gcc.target/i386/avx-ceil-sfix-vec.c b/gcc/testsuite/gcc.target/i386/avx-ceil-sfix-vec.c index ac0911fe844..7466041d279 100644 --- a/gcc/testsuite/gcc.target/i386/avx-ceil-sfix-vec.c +++ b/gcc/testsuite/gcc.target/i386/avx-ceil-sfix-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */ /* { dg-require-effective-target avx } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-ceil-vec.c b/gcc/testsuite/gcc.target/i386/avx-ceil-vec.c index 0e76ab8026c..3edc17ea182 100644 --- a/gcc/testsuite/gcc.target/i386/avx-ceil-vec.c +++ b/gcc/testsuite/gcc.target/i386/avx-ceil-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */ /* { dg-require-effective-target avx } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-ceilf-sfix-vec.c b/gcc/testsuite/gcc.target/i386/avx-ceilf-sfix-vec.c index 789b78e76a7..07e2b80992a 100644 --- a/gcc/testsuite/gcc.target/i386/avx-ceilf-sfix-vec.c +++ b/gcc/testsuite/gcc.target/i386/avx-ceilf-sfix-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */ /* { dg-require-effective-target avx } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-ceilf-vec.c b/gcc/testsuite/gcc.target/i386/avx-ceilf-vec.c index c324a9b4f4f..641e34f5ca3 100644 --- a/gcc/testsuite/gcc.target/i386/avx-ceilf-vec.c +++ b/gcc/testsuite/gcc.target/i386/avx-ceilf-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */ /* { dg-require-effective-target avx } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-cvt-2-vec.c b/gcc/testsuite/gcc.target/i386/avx-cvt-2-vec.c index 0081dcf3812..ad381c07ec1 100644 --- a/gcc/testsuite/gcc.target/i386/avx-cvt-2-vec.c +++ b/gcc/testsuite/gcc.target/i386/avx-cvt-2-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */ /* { dg-require-effective-target avx } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "avx-check.h" @@ -13,7 +12,7 @@ #include CHECK_H -#include +#include "math_m_pi.h" #define NUM 4 diff --git a/gcc/testsuite/gcc.target/i386/avx-cvt-vec.c b/gcc/testsuite/gcc.target/i386/avx-cvt-vec.c index 4dcfa398954..72e8b1d1712 100644 --- a/gcc/testsuite/gcc.target/i386/avx-cvt-vec.c +++ b/gcc/testsuite/gcc.target/i386/avx-cvt-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */ /* { dg-require-effective-target avx } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-floor-sfix-2-vec.c b/gcc/testsuite/gcc.target/i386/avx-floor-sfix-2-vec.c index 0a28c762b3c..928a4a2f602 100644 --- a/gcc/testsuite/gcc.target/i386/avx-floor-sfix-2-vec.c +++ b/gcc/testsuite/gcc.target/i386/avx-floor-sfix-2-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */ /* { dg-require-effective-target avx } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "avx-check.h" @@ -14,7 +13,7 @@ #include CHECK_H #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" extern double floor (double); diff --git a/gcc/testsuite/gcc.target/i386/avx-floor-sfix-vec.c b/gcc/testsuite/gcc.target/i386/avx-floor-sfix-vec.c index efa557cf791..7ec690b5a31 100644 --- a/gcc/testsuite/gcc.target/i386/avx-floor-sfix-vec.c +++ b/gcc/testsuite/gcc.target/i386/avx-floor-sfix-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */ /* { dg-require-effective-target avx } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-floor-vec.c b/gcc/testsuite/gcc.target/i386/avx-floor-vec.c index 1d7fe504317..9fcab1ddbed 100644 --- a/gcc/testsuite/gcc.target/i386/avx-floor-vec.c +++ b/gcc/testsuite/gcc.target/i386/avx-floor-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */ /* { dg-require-effective-target avx } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-floorf-sfix-vec.c b/gcc/testsuite/gcc.target/i386/avx-floorf-sfix-vec.c index 0c1587a1209..02c8177216d 100644 --- a/gcc/testsuite/gcc.target/i386/avx-floorf-sfix-vec.c +++ b/gcc/testsuite/gcc.target/i386/avx-floorf-sfix-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */ /* { dg-require-effective-target avx } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-floorf-vec.c b/gcc/testsuite/gcc.target/i386/avx-floorf-vec.c index 73da85be9e1..b2e707eac6a 100644 --- a/gcc/testsuite/gcc.target/i386/avx-floorf-vec.c +++ b/gcc/testsuite/gcc.target/i386/avx-floorf-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */ /* { dg-require-effective-target avx } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-rint-sfix-2-vec.c b/gcc/testsuite/gcc.target/i386/avx-rint-sfix-2-vec.c index e6c47b8dff1..dce850ddfc9 100644 --- a/gcc/testsuite/gcc.target/i386/avx-rint-sfix-2-vec.c +++ b/gcc/testsuite/gcc.target/i386/avx-rint-sfix-2-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */ /* { dg-require-effective-target avx } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "avx-check.h" @@ -14,7 +13,7 @@ #include CHECK_H #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" extern double rint (double); diff --git a/gcc/testsuite/gcc.target/i386/avx-rint-sfix-vec.c b/gcc/testsuite/gcc.target/i386/avx-rint-sfix-vec.c index 824f2eb7d52..4a7f67db020 100644 --- a/gcc/testsuite/gcc.target/i386/avx-rint-sfix-vec.c +++ b/gcc/testsuite/gcc.target/i386/avx-rint-sfix-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */ /* { dg-require-effective-target avx } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-rint-vec.c b/gcc/testsuite/gcc.target/i386/avx-rint-vec.c index c1d420c6c36..3af517a3762 100644 --- a/gcc/testsuite/gcc.target/i386/avx-rint-vec.c +++ b/gcc/testsuite/gcc.target/i386/avx-rint-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */ /* { dg-require-effective-target avx } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-rintf-sfix-vec.c b/gcc/testsuite/gcc.target/i386/avx-rintf-sfix-vec.c index e5ddf790d75..3dfbb60bed7 100644 --- a/gcc/testsuite/gcc.target/i386/avx-rintf-sfix-vec.c +++ b/gcc/testsuite/gcc.target/i386/avx-rintf-sfix-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */ /* { dg-require-effective-target avx } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-rintf-vec.c b/gcc/testsuite/gcc.target/i386/avx-rintf-vec.c index caf365da685..8b5f5e0722d 100644 --- a/gcc/testsuite/gcc.target/i386/avx-rintf-vec.c +++ b/gcc/testsuite/gcc.target/i386/avx-rintf-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */ /* { dg-require-effective-target avx } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-round-sfix-2-vec.c b/gcc/testsuite/gcc.target/i386/avx-round-sfix-2-vec.c index dc0a7db33d8..fe6970bc377 100644 --- a/gcc/testsuite/gcc.target/i386/avx-round-sfix-2-vec.c +++ b/gcc/testsuite/gcc.target/i386/avx-round-sfix-2-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */ /* { dg-require-effective-target avx } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "avx-check.h" @@ -14,7 +13,7 @@ #include CHECK_H #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" extern double round (double); diff --git a/gcc/testsuite/gcc.target/i386/avx-round-sfix-vec.c b/gcc/testsuite/gcc.target/i386/avx-round-sfix-vec.c index 5adfffa5f10..5670636286e 100644 --- a/gcc/testsuite/gcc.target/i386/avx-round-sfix-vec.c +++ b/gcc/testsuite/gcc.target/i386/avx-round-sfix-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */ /* { dg-require-effective-target avx } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-round-vec.c b/gcc/testsuite/gcc.target/i386/avx-round-vec.c index c43c057049d..26a6878ac48 100644 --- a/gcc/testsuite/gcc.target/i386/avx-round-vec.c +++ b/gcc/testsuite/gcc.target/i386/avx-round-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */ /* { dg-require-effective-target avx } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-roundf-sfix-vec.c b/gcc/testsuite/gcc.target/i386/avx-roundf-sfix-vec.c index 1fd4591233d..827e4766792 100644 --- a/gcc/testsuite/gcc.target/i386/avx-roundf-sfix-vec.c +++ b/gcc/testsuite/gcc.target/i386/avx-roundf-sfix-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */ /* { dg-require-effective-target avx } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-roundf-vec.c b/gcc/testsuite/gcc.target/i386/avx-roundf-vec.c index 978013eb126..3dae33003e1 100644 --- a/gcc/testsuite/gcc.target/i386/avx-roundf-vec.c +++ b/gcc/testsuite/gcc.target/i386/avx-roundf-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */ /* { dg-require-effective-target avx } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-trunc-vec.c b/gcc/testsuite/gcc.target/i386/avx-trunc-vec.c index a1ee6d461f3..8e193af36f1 100644 --- a/gcc/testsuite/gcc.target/i386/avx-trunc-vec.c +++ b/gcc/testsuite/gcc.target/i386/avx-trunc-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */ /* { dg-require-effective-target avx } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-truncf-vec.c b/gcc/testsuite/gcc.target/i386/avx-truncf-vec.c index a1ee6d461f3..8e193af36f1 100644 --- a/gcc/testsuite/gcc.target/i386/avx-truncf-vec.c +++ b/gcc/testsuite/gcc.target/i386/avx-truncf-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */ /* { dg-require-effective-target avx } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx512f-ceil-sfix-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-ceil-sfix-vec-1.c index d7d69166317..ab058334a8c 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-ceil-sfix-vec-1.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-ceil-sfix-vec-1.c @@ -1,10 +1,9 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx512f" } */ /* { dg-require-effective-target avx512f } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" #include "avx512f-check.h" extern double ceil (double); diff --git a/gcc/testsuite/gcc.target/i386/avx512f-ceil-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-ceil-vec-1.c index fc48b1572b9..3ab64559cd2 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-ceil-vec-1.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-ceil-vec-1.c @@ -1,10 +1,9 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx512f" } */ /* { dg-require-effective-target avx512f } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" #include "avx512f-check.h" #define NUM 64 diff --git a/gcc/testsuite/gcc.target/i386/avx512f-ceilf-sfix-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-ceilf-sfix-vec-1.c index c6d53d89fc6..27a4bb95342 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-ceilf-sfix-vec-1.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-ceilf-sfix-vec-1.c @@ -1,10 +1,9 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx512f" } */ /* { dg-require-effective-target avx512f } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" #include "avx512f-check.h" #define NUM 64 diff --git a/gcc/testsuite/gcc.target/i386/avx512f-ceilf-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-ceilf-vec-1.c index 4788825fc3d..54222da76f4 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-ceilf-vec-1.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-ceilf-vec-1.c @@ -1,10 +1,9 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx512f" } */ /* { dg-require-effective-target avx512f } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" #include "avx512f-check.h" #define NUM 64 diff --git a/gcc/testsuite/gcc.target/i386/avx512f-floor-sfix-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-floor-sfix-vec-1.c index b46ea9fc283..9eff15f5006 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-floor-sfix-vec-1.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-floor-sfix-vec-1.c @@ -1,10 +1,9 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx512f" } */ /* { dg-require-effective-target avx512f } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" #include "avx512f-check.h" extern double floor (double); diff --git a/gcc/testsuite/gcc.target/i386/avx512f-floor-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-floor-vec-1.c index b7cbed005dd..be9709951f7 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-floor-vec-1.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-floor-vec-1.c @@ -1,10 +1,9 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx512f" } */ /* { dg-require-effective-target avx512f } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" #include "avx512f-check.h" #define NUM 64 diff --git a/gcc/testsuite/gcc.target/i386/avx512f-floorf-sfix-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-floorf-sfix-vec-1.c index 6a25f438a8e..7a84fcbc731 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-floorf-sfix-vec-1.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-floorf-sfix-vec-1.c @@ -1,10 +1,9 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx512f" } */ /* { dg-require-effective-target avx512f } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" #include "avx512f-check.h" #define NUM 64 diff --git a/gcc/testsuite/gcc.target/i386/avx512f-floorf-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-floorf-vec-1.c index 69fc73d78ef..fcc0b275860 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-floorf-vec-1.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-floorf-vec-1.c @@ -1,10 +1,9 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx512f" } */ /* { dg-require-effective-target avx512f } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" #include "avx512f-check.h" #define NUM 64 diff --git a/gcc/testsuite/gcc.target/i386/avx512f-rint-sfix-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-rint-sfix-vec-1.c index 8e1745aa13a..d22385c95e5 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-rint-sfix-vec-1.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-rint-sfix-vec-1.c @@ -1,10 +1,9 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx512f" } */ /* { dg-require-effective-target avx512f } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" #include "avx512f-check.h" #define NUM 64 diff --git a/gcc/testsuite/gcc.target/i386/avx512f-rintf-sfix-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-rintf-sfix-vec-1.c index ac3e9a25973..6a627ab4ac8 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-rintf-sfix-vec-1.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-rintf-sfix-vec-1.c @@ -1,10 +1,9 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx512f" } */ /* { dg-require-effective-target avx512f } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" #include "avx512f-check.h" #define NUM 64 diff --git a/gcc/testsuite/gcc.target/i386/avx512f-round-sfix-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-round-sfix-vec-1.c index 61bea578e18..4c83e7b0512 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-round-sfix-vec-1.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-round-sfix-vec-1.c @@ -1,10 +1,9 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx512f" } */ /* { dg-require-effective-target avx512f } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" #include "avx512f-check.h" #define NUM 64 diff --git a/gcc/testsuite/gcc.target/i386/avx512f-roundf-sfix-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-roundf-sfix-vec-1.c index c5ec9e7ec00..1341a5bbe53 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-roundf-sfix-vec-1.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-roundf-sfix-vec-1.c @@ -1,10 +1,9 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx512f" } */ /* { dg-require-effective-target avx512f } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" #include "avx512f-check.h" #define NUM 64 diff --git a/gcc/testsuite/gcc.target/i386/avx512f-trunc-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-trunc-vec-1.c index dfb93d72324..b8b5d0730a8 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-trunc-vec-1.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-trunc-vec-1.c @@ -1,10 +1,9 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx512f" } */ /* { dg-require-effective-target avx512f } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" #include "avx512f-check.h" #define NUM 64 diff --git a/gcc/testsuite/gcc.target/i386/avx512f-truncf-vec-1.c b/gcc/testsuite/gcc.target/i386/avx512f-truncf-vec-1.c index db13e712829..7dfd575f019 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-truncf-vec-1.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-truncf-vec-1.c @@ -1,10 +1,9 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx512f" } */ /* { dg-require-effective-target avx512f } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" #include "avx512f-check.h" #define NUM 64 diff --git a/gcc/testsuite/gcc.target/i386/avx512f-vfixupimmpd-2.c b/gcc/testsuite/gcc.target/i386/avx512f-vfixupimmpd-2.c index 98b5ed1c1c7..8a673d7d74e 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-vfixupimmpd-2.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-vfixupimmpd-2.c @@ -9,7 +9,7 @@ #define SIZE (AVX512F_LEN / 64) #include "avx512f-mask-type.h" -#include "math.h" +#include "math_m_pi.h" #include "float.h" diff --git a/gcc/testsuite/gcc.target/i386/avx512f-vfixupimmps-2.c b/gcc/testsuite/gcc.target/i386/avx512f-vfixupimmps-2.c index e5a917f121c..815a088d0ae 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-vfixupimmps-2.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-vfixupimmps-2.c @@ -9,7 +9,7 @@ #define SIZE (AVX512F_LEN / 32) #include "avx512f-mask-type.h" -#include "math.h" +#include "math_m_pi.h" #include "float.h" static void diff --git a/gcc/testsuite/gcc.target/i386/avx512f-vfixupimmsd-2.c b/gcc/testsuite/gcc.target/i386/avx512f-vfixupimmsd-2.c index d3cd28cbeef..88df19bd437 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-vfixupimmsd-2.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-vfixupimmsd-2.c @@ -5,7 +5,7 @@ #include "avx512f-check.h" #include "avx512f-helper.h" -#include +#include "math_m_pi.h" #include #include "avx512f-mask-type.h" diff --git a/gcc/testsuite/gcc.target/i386/avx512f-vfixupimmss-2.c b/gcc/testsuite/gcc.target/i386/avx512f-vfixupimmss-2.c index 7364cc5b9a9..65ec0452403 100644 --- a/gcc/testsuite/gcc.target/i386/avx512f-vfixupimmss-2.c +++ b/gcc/testsuite/gcc.target/i386/avx512f-vfixupimmss-2.c @@ -5,7 +5,7 @@ #include "avx512f-check.h" #include "avx512f-helper.h" -#include +#include "math_m_pi.h" #include #include "avx512f-mask-type.h" diff --git a/gcc/testsuite/gcc.target/i386/math_m_pi.h b/gcc/testsuite/gcc.target/i386/math_m_pi.h new file mode 100644 index 00000000000..0757a40c1eb --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/math_m_pi.h @@ -0,0 +1,10 @@ +#include +#ifndef M_PI +# define M_PI 3.14159265358979323846 +#endif +#ifndef M_PI_2 +# define M_PI_2 1.57079632679489661923 +#endif +#ifndef M_PI_4 +# define M_PI_4 0.78539816339744830962 +#endif diff --git a/gcc/testsuite/gcc.target/i386/pr73350.c b/gcc/testsuite/gcc.target/i386/pr73350.c index 62f6cd42386..30cb8b17468 100644 --- a/gcc/testsuite/gcc.target/i386/pr73350.c +++ b/gcc/testsuite/gcc.target/i386/pr73350.c @@ -1,7 +1,7 @@ /* { dg-do run } */ /* { dg-options "-O2 -mavx512f" } */ /* { dg-require-effective-target avx512f } */ -#include +#include "math_m_pi.h" #define AVX512F #include "avx512f-helper.h" diff --git a/gcc/testsuite/gcc.target/i386/sse2-cvt-vec.c b/gcc/testsuite/gcc.target/i386/sse2-cvt-vec.c index 8a811a3defe..67fae51ea1e 100644 --- a/gcc/testsuite/gcc.target/i386/sse2-cvt-vec.c +++ b/gcc/testsuite/gcc.target/i386/sse2-cvt-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -msse2" } */ /* { dg-require-effective-target sse2 } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "sse2-check.h" @@ -13,7 +12,7 @@ #include CHECK_H -#include +#include "math_m_pi.h" #define NUM 64 diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-ceil-sfix-vec.c b/gcc/testsuite/gcc.target/i386/sse4_1-ceil-sfix-vec.c index bb32c8d7669..6250906f3f1 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-ceil-sfix-vec.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-ceil-sfix-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -msse4.1" } */ /* { dg-require-effective-target sse4 } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "sse4_1-check.h" @@ -14,7 +13,7 @@ #include CHECK_H #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" extern double ceil (double); diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-ceil-vec.c b/gcc/testsuite/gcc.target/i386/sse4_1-ceil-vec.c index 4193aaa97cf..2ef43aec118 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-ceil-vec.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-ceil-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -msse4.1" } */ /* { dg-require-effective-target sse4 } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "sse4_1-check.h" @@ -14,7 +13,7 @@ #include CHECK_H #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" extern double ceil (double); diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-ceilf-sfix-vec.c b/gcc/testsuite/gcc.target/i386/sse4_1-ceilf-sfix-vec.c index 971ccb853e1..c4ccad16df5 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-ceilf-sfix-vec.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-ceilf-sfix-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -msse4.1" } */ /* { dg-require-effective-target sse4 } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "sse4_1-check.h" @@ -14,7 +13,7 @@ #include CHECK_H #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" extern float ceilf (float); diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-ceilf-vec.c b/gcc/testsuite/gcc.target/i386/sse4_1-ceilf-vec.c index e2ebafc6db2..1382d2028f9 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-ceilf-vec.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-ceilf-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -msse4.1" } */ /* { dg-require-effective-target sse4 } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "sse4_1-check.h" @@ -14,7 +13,7 @@ #include CHECK_H #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" extern float ceilf (float); diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-floor-sfix-vec.c b/gcc/testsuite/gcc.target/i386/sse4_1-floor-sfix-vec.c index 15db225d237..89ce331ffa6 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-floor-sfix-vec.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-floor-sfix-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -msse4.1" } */ /* { dg-require-effective-target sse4 } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "sse4_1-check.h" @@ -14,7 +13,7 @@ #include CHECK_H #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" extern double floor (double); diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-floor-vec.c b/gcc/testsuite/gcc.target/i386/sse4_1-floor-vec.c index a33f7d915db..32b70026324 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-floor-vec.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-floor-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -msse4.1" } */ /* { dg-require-effective-target sse4 } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "sse4_1-check.h" @@ -14,7 +13,7 @@ #include CHECK_H #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" extern double floor (double); diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-floorf-sfix-vec.c b/gcc/testsuite/gcc.target/i386/sse4_1-floorf-sfix-vec.c index bf05af3e281..b1912360860 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-floorf-sfix-vec.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-floorf-sfix-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -msse4.1" } */ /* { dg-require-effective-target sse4 } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "sse4_1-check.h" @@ -14,7 +13,7 @@ #include CHECK_H #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" #define NUM 64 diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-floorf-vec.c b/gcc/testsuite/gcc.target/i386/sse4_1-floorf-vec.c index 13630fb5460..d2f4a85d0c5 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-floorf-vec.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-floorf-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -msse4.1" } */ /* { dg-require-effective-target sse4 } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "sse4_1-check.h" @@ -14,7 +13,7 @@ #include CHECK_H #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" #define NUM 64 diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-rint-sfix-vec.c b/gcc/testsuite/gcc.target/i386/sse4_1-rint-sfix-vec.c index 61119333526..c82c35340c5 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-rint-sfix-vec.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-rint-sfix-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -msse4.1" } */ /* { dg-require-effective-target sse4 } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "sse4_1-check.h" @@ -14,7 +13,7 @@ #include CHECK_H #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" extern double rint (double); diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-rint-vec.c b/gcc/testsuite/gcc.target/i386/sse4_1-rint-vec.c index 88965a542b7..309f17eb83f 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-rint-vec.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-rint-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -msse4.1" } */ /* { dg-require-effective-target sse4 } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "sse4_1-check.h" @@ -14,7 +13,7 @@ #include CHECK_H #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" extern double rint (double); diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-rintf-sfix-vec.c b/gcc/testsuite/gcc.target/i386/sse4_1-rintf-sfix-vec.c index 12d3dbeb14d..5188d4bc0b3 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-rintf-sfix-vec.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-rintf-sfix-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -msse4.1" } */ /* { dg-require-effective-target sse4 } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "sse4_1-check.h" @@ -14,7 +13,7 @@ #include CHECK_H #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" extern float rintf (float); diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-rintf-vec.c b/gcc/testsuite/gcc.target/i386/sse4_1-rintf-vec.c index 362832d15c4..8c31f8de9bc 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-rintf-vec.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-rintf-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -msse4.1" } */ /* { dg-require-effective-target sse4 } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "sse4_1-check.h" @@ -14,7 +13,7 @@ #include CHECK_H #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" extern float rintf (float); diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-round-sfix-vec.c b/gcc/testsuite/gcc.target/i386/sse4_1-round-sfix-vec.c index c54aceef592..96b8dcac747 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-round-sfix-vec.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-round-sfix-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -msse4.1" } */ /* { dg-require-effective-target sse4 } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "sse4_1-check.h" @@ -14,7 +13,7 @@ #include CHECK_H #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" extern double round (double); diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-round-vec.c b/gcc/testsuite/gcc.target/i386/sse4_1-round-vec.c index 83aeb64a773..e3e9328640c 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-round-vec.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-round-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -msse4.1" } */ /* { dg-require-effective-target sse4 } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "sse4_1-check.h" @@ -14,7 +13,7 @@ #include CHECK_H #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" extern double round (double); diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-round.h b/gcc/testsuite/gcc.target/i386/sse4_1-round.h index dfb0b778cdc..adff48b8b2f 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-round.h +++ b/gcc/testsuite/gcc.target/i386/sse4_1-round.h @@ -1,5 +1,5 @@ #include -#include +#include "math_m_pi.h" #define NUM 64 diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundf-sfix-vec.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundf-sfix-vec.c index cd1107110cc..1416dc9a798 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundf-sfix-vec.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundf-sfix-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -msse4.1" } */ /* { dg-require-effective-target sse4 } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "sse4_1-check.h" @@ -14,7 +13,7 @@ #include CHECK_H #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" extern float roundf (float); diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundf-vec.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundf-vec.c index b55e5df0585..fc0aead01fb 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundf-vec.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundf-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -msse4.1" } */ /* { dg-require-effective-target sse4 } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "sse4_1-check.h" @@ -14,7 +13,7 @@ #include CHECK_H #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" extern float roundf (float); diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundpd-1.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundpd-1.c index 8baee339017..37f20285f54 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundpd-1.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundpd-1.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "sse4_1-check.h" diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundpd-2.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundpd-2.c index 86b78ed7578..7f0475f75ce 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundpd-2.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundpd-2.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "sse4_1-check.h" diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundpd-3.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundpd-3.c index 6e6a05c59c2..4a1f81026f0 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundpd-3.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundpd-3.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "sse4_1-check.h" diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundps-1.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundps-1.c index fab227869fc..fa8002d7e71 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundps-1.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundps-1.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #include "sse4_1-check.h" diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundps-2.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundps-2.c index 405c55d45a4..673c786258d 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundps-2.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundps-2.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #include "sse4_1-check.h" diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundps-3.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundps-3.c index 97485b95867..9b52ae5ba2a 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundps-3.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundps-3.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #include "sse4_1-check.h" diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-1.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-1.c index e6cec0b9478..f3ecd0e2744 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-1.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-1.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #include "sse4_1-check.h" diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-2.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-2.c index 54ca21f8f2c..91dfd38fd96 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-2.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-2.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #include "sse4_1-check.h" diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-3.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-3.c index a59d6f86e5f..0a69e0663eb 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-3.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-3.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #include "sse4_1-check.h" diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-4.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-4.c index ff8b09eeba6..d8dcca00efa 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-4.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundsd-4.c @@ -1,12 +1,11 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #include "sse4_1-check.h" #include -#include +#include "math_m_pi.h" #include #define NUM 64 diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundss-1.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundss-1.c index 9c20b90ad05..01940bd0ba1 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundss-1.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundss-1.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #include "sse4_1-check.h" diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundss-2.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundss-2.c index 072664e1573..4c73331a277 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundss-2.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundss-2.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #include "sse4_1-check.h" diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundss-3.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundss-3.c index 97c69fdbcb2..774c1939c30 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundss-3.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundss-3.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #include "sse4_1-check.h" diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-roundss-4.c b/gcc/testsuite/gcc.target/i386/sse4_1-roundss-4.c index 95488908630..0a9ab59e42c 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-roundss-4.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-roundss-4.c @@ -1,12 +1,11 @@ /* { dg-do run } */ /* { dg-require-effective-target sse4 } */ /* { dg-options "-O2 -msse4.1" } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #include "sse4_1-check.h" #include -#include +#include "math_m_pi.h" #include #define NUM 64 diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-trunc-vec.c b/gcc/testsuite/gcc.target/i386/sse4_1-trunc-vec.c index 5c270837980..4f4786c7016 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-trunc-vec.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-trunc-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -msse4.1" } */ /* { dg-require-effective-target sse4 } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "sse4_1-check.h" @@ -14,7 +13,7 @@ #include CHECK_H #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" extern double trunc (double); diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-truncf-vec.c b/gcc/testsuite/gcc.target/i386/sse4_1-truncf-vec.c index e491feedd92..691ea7b8e78 100644 --- a/gcc/testsuite/gcc.target/i386/sse4_1-truncf-vec.c +++ b/gcc/testsuite/gcc.target/i386/sse4_1-truncf-vec.c @@ -1,7 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -msse4.1" } */ /* { dg-require-effective-target sse4 } */ -/* { dg-skip-if "no M_PI" { vxworks_kernel } } */ #ifndef CHECK_H #define CHECK_H "sse4_1-check.h" @@ -14,7 +13,7 @@ #include CHECK_H #define __NO_MATH_INLINES -#include +#include "math_m_pi.h" extern float truncf (float); -- 2.30.2