diff options
79 files changed, 108 insertions, 117 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cb8040c..d7eda8e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,55 @@ +2019-08-07 Alexandre Oliva <oliva@adacore.com> + + * 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 <kargl@gcc.gnu.org> 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 45b7af7..8d3b0a6 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 <math.h> +#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 ac0911f..7466041 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 0e76ab8..3edc17e 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 789b78e..07e2b80 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 c324a9b..641e34f 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 0081dcf..ad381c0 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 <math.h> +#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 4dcfa39..72e8b1d 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 0a28c76..928a4a2 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 <math.h> +#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 efa557c..7ec690b 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 1d7fe50..9fcab1d 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 0c1587a..02c8177 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 73da85b..b2e707e 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 e6c47b8..dce850d 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 <math.h> +#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 824f2eb..4a7f67d 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 c1d420c6..3af517a 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 e5ddf790..3dfbb60 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 caf365d..8b5f5e0 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 dc0a7db..fe6970b 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 <math.h> +#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 5adfffa..5670636 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 c43c057..26a6878 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 1fd4591..827e476 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 978013e..3dae330 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 a1ee6d4..8e193af 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 a1ee6d4..8e193af 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 d7d6916..ab05833 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 <math.h> +#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 fc48b15..3ab6455 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 <math.h> +#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 c6d53d8..27a4bb9 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 <math.h> +#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 4788825..54222da 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 <math.h> +#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 b46ea9f..9eff15f 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 <math.h> +#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 b7cbed0..be97099 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 <math.h> +#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 6a25f43..7a84fcb 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 <math.h> +#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 69fc73d..fcc0b27 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 <math.h> +#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 8e1745a..d22385c 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 <math.h> +#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 ac3e9a2..6a627ab 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 <math.h> +#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 61bea57..4c83e7b 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 <math.h> +#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 c5ec9e7..1341a5b 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 <math.h> +#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 dfb93d7..b8b5d07 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 <math.h> +#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 db13e71..7dfd575 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 <math.h> +#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 98b5ed1..8a673d7 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 e5a917f..815a088 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 d3cd28c..88df19b 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 <math.h> +#include "math_m_pi.h" #include <float.h> #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 7364cc5..65ec045 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 <math.h> +#include "math_m_pi.h" #include <float.h> #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 0000000..0757a40 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/math_m_pi.h @@ -0,0 +1,10 @@ +#include <math.h> +#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 62f6cd4..30cb8b1 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 <math.h> +#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 8a811a3..67fae51 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 <math.h> +#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 bb32c8d..6250906 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 <math.h> +#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 4193aaa..2ef43ae 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 <math.h> +#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 971ccb8..c4ccad1 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 <math.h> +#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 e2ebafc..1382d20 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 <math.h> +#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 15db225..89ce331 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 <math.h> +#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 a33f7d9..32b7002 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 <math.h> +#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 bf05af3..b191236 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 <math.h> +#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 13630fb..d2f4a85 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 <math.h> +#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 6111933..c82c353 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 <math.h> +#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 88965a5..309f17e 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 <math.h> +#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 12d3dbe..5188d4b 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 <math.h> +#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 362832d..8c31f8d 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 <math.h> +#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 c54acee..96b8dca 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 <math.h> +#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 83aeb64..e3e9328 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 <math.h> +#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 dfb0b77..adff48b 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 <smmintrin.h> -#include <math.h> +#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 cd11071..1416dc9 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 <math.h> +#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 b55e5df..fc0aead 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 <math.h> +#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 8baee339..37f2028 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 86b78ed..7f0475f 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 6e6a05c..4a1f810 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 fab2278..fa8002d 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 405c55d..673c786 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 97485b9..9b52ae5 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 e6cec0b..f3ecd0e 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 54ca21f..91dfd38 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 a59d6f8..0a69e06 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 ff8b09e..d8dcca0 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 <smmintrin.h> -#include <math.h> +#include "math_m_pi.h" #include <string.h> #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 9c20b90a..01940bd 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 072664e..4c73331 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 97c69fd..774c193 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 9548890..0a9ab59 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 <smmintrin.h> -#include <math.h> +#include "math_m_pi.h" #include <string.h> #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 5c27083..4f4786c 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 <math.h> +#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 e491fee..691ea7b 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 <math.h> +#include "math_m_pi.h" extern float truncf (float); |