wrap math.h for M_PI et al in target/i386 tests
authorAlexandre Oliva <oliva@adacore.com>
Wed, 7 Aug 2019 06:35:39 +0000 (06:35 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Wed, 7 Aug 2019 06:35:39 +0000 (06:35 +0000)
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

79 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/avx-ceil-sfix-2-vec.c
gcc/testsuite/gcc.target/i386/avx-ceil-sfix-vec.c
gcc/testsuite/gcc.target/i386/avx-ceil-vec.c
gcc/testsuite/gcc.target/i386/avx-ceilf-sfix-vec.c
gcc/testsuite/gcc.target/i386/avx-ceilf-vec.c
gcc/testsuite/gcc.target/i386/avx-cvt-2-vec.c
gcc/testsuite/gcc.target/i386/avx-cvt-vec.c
gcc/testsuite/gcc.target/i386/avx-floor-sfix-2-vec.c
gcc/testsuite/gcc.target/i386/avx-floor-sfix-vec.c
gcc/testsuite/gcc.target/i386/avx-floor-vec.c
gcc/testsuite/gcc.target/i386/avx-floorf-sfix-vec.c
gcc/testsuite/gcc.target/i386/avx-floorf-vec.c
gcc/testsuite/gcc.target/i386/avx-rint-sfix-2-vec.c
gcc/testsuite/gcc.target/i386/avx-rint-sfix-vec.c
gcc/testsuite/gcc.target/i386/avx-rint-vec.c
gcc/testsuite/gcc.target/i386/avx-rintf-sfix-vec.c
gcc/testsuite/gcc.target/i386/avx-rintf-vec.c
gcc/testsuite/gcc.target/i386/avx-round-sfix-2-vec.c
gcc/testsuite/gcc.target/i386/avx-round-sfix-vec.c
gcc/testsuite/gcc.target/i386/avx-round-vec.c
gcc/testsuite/gcc.target/i386/avx-roundf-sfix-vec.c
gcc/testsuite/gcc.target/i386/avx-roundf-vec.c
gcc/testsuite/gcc.target/i386/avx-trunc-vec.c
gcc/testsuite/gcc.target/i386/avx-truncf-vec.c
gcc/testsuite/gcc.target/i386/avx512f-ceil-sfix-vec-1.c
gcc/testsuite/gcc.target/i386/avx512f-ceil-vec-1.c
gcc/testsuite/gcc.target/i386/avx512f-ceilf-sfix-vec-1.c
gcc/testsuite/gcc.target/i386/avx512f-ceilf-vec-1.c
gcc/testsuite/gcc.target/i386/avx512f-floor-sfix-vec-1.c
gcc/testsuite/gcc.target/i386/avx512f-floor-vec-1.c
gcc/testsuite/gcc.target/i386/avx512f-floorf-sfix-vec-1.c
gcc/testsuite/gcc.target/i386/avx512f-floorf-vec-1.c
gcc/testsuite/gcc.target/i386/avx512f-rint-sfix-vec-1.c
gcc/testsuite/gcc.target/i386/avx512f-rintf-sfix-vec-1.c
gcc/testsuite/gcc.target/i386/avx512f-round-sfix-vec-1.c
gcc/testsuite/gcc.target/i386/avx512f-roundf-sfix-vec-1.c
gcc/testsuite/gcc.target/i386/avx512f-trunc-vec-1.c
gcc/testsuite/gcc.target/i386/avx512f-truncf-vec-1.c
gcc/testsuite/gcc.target/i386/avx512f-vfixupimmpd-2.c
gcc/testsuite/gcc.target/i386/avx512f-vfixupimmps-2.c
gcc/testsuite/gcc.target/i386/avx512f-vfixupimmsd-2.c
gcc/testsuite/gcc.target/i386/avx512f-vfixupimmss-2.c
gcc/testsuite/gcc.target/i386/math_m_pi.h [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr73350.c
gcc/testsuite/gcc.target/i386/sse2-cvt-vec.c
gcc/testsuite/gcc.target/i386/sse4_1-ceil-sfix-vec.c
gcc/testsuite/gcc.target/i386/sse4_1-ceil-vec.c
gcc/testsuite/gcc.target/i386/sse4_1-ceilf-sfix-vec.c
gcc/testsuite/gcc.target/i386/sse4_1-ceilf-vec.c
gcc/testsuite/gcc.target/i386/sse4_1-floor-sfix-vec.c
gcc/testsuite/gcc.target/i386/sse4_1-floor-vec.c
gcc/testsuite/gcc.target/i386/sse4_1-floorf-sfix-vec.c
gcc/testsuite/gcc.target/i386/sse4_1-floorf-vec.c
gcc/testsuite/gcc.target/i386/sse4_1-rint-sfix-vec.c
gcc/testsuite/gcc.target/i386/sse4_1-rint-vec.c
gcc/testsuite/gcc.target/i386/sse4_1-rintf-sfix-vec.c
gcc/testsuite/gcc.target/i386/sse4_1-rintf-vec.c
gcc/testsuite/gcc.target/i386/sse4_1-round-sfix-vec.c
gcc/testsuite/gcc.target/i386/sse4_1-round-vec.c
gcc/testsuite/gcc.target/i386/sse4_1-round.h
gcc/testsuite/gcc.target/i386/sse4_1-roundf-sfix-vec.c
gcc/testsuite/gcc.target/i386/sse4_1-roundf-vec.c
gcc/testsuite/gcc.target/i386/sse4_1-roundpd-1.c
gcc/testsuite/gcc.target/i386/sse4_1-roundpd-2.c
gcc/testsuite/gcc.target/i386/sse4_1-roundpd-3.c
gcc/testsuite/gcc.target/i386/sse4_1-roundps-1.c
gcc/testsuite/gcc.target/i386/sse4_1-roundps-2.c
gcc/testsuite/gcc.target/i386/sse4_1-roundps-3.c
gcc/testsuite/gcc.target/i386/sse4_1-roundsd-1.c
gcc/testsuite/gcc.target/i386/sse4_1-roundsd-2.c
gcc/testsuite/gcc.target/i386/sse4_1-roundsd-3.c
gcc/testsuite/gcc.target/i386/sse4_1-roundsd-4.c
gcc/testsuite/gcc.target/i386/sse4_1-roundss-1.c
gcc/testsuite/gcc.target/i386/sse4_1-roundss-2.c
gcc/testsuite/gcc.target/i386/sse4_1-roundss-3.c
gcc/testsuite/gcc.target/i386/sse4_1-roundss-4.c
gcc/testsuite/gcc.target/i386/sse4_1-trunc-vec.c
gcc/testsuite/gcc.target/i386/sse4_1-truncf-vec.c

index cb8040c00fd1547c832e8fe8916c4652dcfdeb6e..d7eda8e784e5e0be52bd6c8f3ec55306a3897953 100644 (file)
@@ -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
index 45b7af7b06a2cd2c01c5d1e67d593cb65c0e60dd..8d3b0a6d79f47ff06882e545a14465ee5cccd264 100644 (file)
@@ -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);
 
index ac0911fe844d0936bd9496fc2b3005ac0b9c9e99..7466041d279999113df21ecda57873067098c34e 100644 (file)
@@ -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
index 0e76ab8026c94a32e3dc7218f4e8986071b01ff3..3edc17ea1828e42d5ae8a3a51363c472b1247403 100644 (file)
@@ -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
index 789b78e76a78d5f8334cab8dfa6f7fa5af2ce794..07e2b80992a95d5c49276794da664c07720d17ec 100644 (file)
@@ -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
index c324a9b4f4fc6c13f7c75245e8f74e832889f5d9..641e34f5ca34056e3eecafcd0438a9de7a582d51 100644 (file)
@@ -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
index 0081dcf381212023c9280f78bae15baef94223fb..ad381c07ec1eafd8bdce62870d08275ac0a57a51 100644 (file)
@@ -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
 
index 4dcfa39895485522bf49e11cccd4ac8910fa1b1c..72e8b1d1712a14ee418c4e34dbd950d9d90375f8 100644 (file)
@@ -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
index 0a28c762b3ceb3cb4b0b22a92c2e6c4e6d6767e4..928a4a2f6028c3052e5e0d40dbc04af6cdee9d47 100644 (file)
@@ -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);
 
index efa557cf79177382ba2c24c6454b006d52a27049..7ec690b5a317b30259b232ae4e64c4ec80e74cf6 100644 (file)
@@ -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
index 1d7fe5043176521df56c77462ad44439e6ee63f3..9fcab1ddbed3fafdfd1bbfb31fad24f72e483611 100644 (file)
@@ -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
index 0c1587a12090bd2aee56ac12eed8cf8da5e3164a..02c8177216da86396ad359c8359b119a37aae7f9 100644 (file)
@@ -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
index 73da85be9e19d7c8c21430a94b43ad52ea409793..b2e707eac6a4c272f1f073613bedb636681ab117 100644 (file)
@@ -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
index e6c47b8dff19d2cc4256f09b618cd5f02bab3a4a..dce850ddfc92a85bba7f123593951153b2179bba 100644 (file)
@@ -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);
 
index 824f2eb7d528a1e8ebdf511e8d1fcbd7bec24af0..4a7f67db0202d0d2a681e0bb37e6f94523a14ba9 100644 (file)
@@ -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
index c1d420c6c36e0880e06ab66ea826f91f790aa058..3af517a3762f113a6f9bdc8dcb2c390e230e8d28 100644 (file)
@@ -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
index e5ddf790d75fd5f99c8bb77506c2d15254f22fcb..3dfbb60bed717234e30042305567412fe3b37bbe 100644 (file)
@@ -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
index caf365da685812fc4d14423820e0de1614c104f5..8b5f5e0722dd3eb4f6d78bdfa092e6602f6e31bb 100644 (file)
@@ -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
index dc0a7db33d885794acfee930274b815dca6cb962..fe6970bc377ad193a68659f1cff2ba0615191d52 100644 (file)
@@ -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);
 
index 5adfffa5f1037aa961608e59cdaba21e6a310382..5670636286e208c4e3ff268dde6597ccea6403b1 100644 (file)
@@ -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
index c43c057049d9c86301cadb9d8be0f5cf3244f7cf..26a6878ac481f21807326854f830d7b98f259fc1 100644 (file)
@@ -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
index 1fd4591233de36379d5a07022e896bb973c9efbf..827e476679258e4bacc22413569de39adb2e7cc0 100644 (file)
@@ -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
index 978013eb1266253a3f763de5b8bbb1dc7034fa49..3dae33003e1e19c0ff2bda8c1e9e8ecd783be927 100644 (file)
@@ -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
index a1ee6d461f399ebec9f2acdce522693ea2864111..8e193af36f1083c8bfdbd6478acef14bea99754f 100644 (file)
@@ -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
index a1ee6d461f399ebec9f2acdce522693ea2864111..8e193af36f1083c8bfdbd6478acef14bea99754f 100644 (file)
@@ -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
index d7d6916631702fb7030d7cd51caa205b8662afeb..ab058334a8c9d70e62a80092a0d9dc553ef54388 100644 (file)
@@ -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);
index fc48b1572b9b66a6db82a91e281c745c79b8860e..3ab64559cd28b067bb9e38d49bb3e02487d35262 100644 (file)
@@ -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
index c6d53d89fc6e0926abff551519e127b59e42cbd4..27a4bb95342ce9d0114912ee8fd00ef62c469c7b 100644 (file)
@@ -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
index 4788825fc3d4ae1c97a3aba484bad879a62375db..54222da76f426205cbe90c308cab9752629aeef5 100644 (file)
@@ -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
index b46ea9fc28337489c4223f27ee37a1f90423ffcc..9eff15f5006c76d7417eda30cecb6cfa113621e6 100644 (file)
@@ -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);
index b7cbed005dd90443f4b3e5c6e6934e1b32751d1f..be9709951f7a97eeefdcc82821ee78076addb463 100644 (file)
@@ -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
index 6a25f438a8e794d2b224d1b33e1793cf7776f92f..7a84fcbc73146cee25fce7643f27a942ca18d63b 100644 (file)
@@ -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
index 69fc73d78efcca77b3c6654c3d1495e2175129dd..fcc0b275860fe6821a52d70c47c1fd6cde36b027 100644 (file)
@@ -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
index 8e1745aa13ab022e5e440ce628f04aa5f7fb65ab..d22385c95e5219114a327b1067941b8588f30288 100644 (file)
@@ -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
index ac3e9a259735dddb9737138377a0efef458169d1..6a627ab4ac824e8fa1fd4f9e09123dbc71277b39 100644 (file)
@@ -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
index 61bea578e1862b5aa49bfc32cf5e7b0c1bc0de02..4c83e7b0512664782bf252fc10f889d2b91148a3 100644 (file)
@@ -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
index c5ec9e7ec009697ad4802836849e671f98ccb7cf..1341a5bbe537c3357f7522a9e4e8da1b30872a0e 100644 (file)
@@ -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
index dfb93d723244233e3801ddd01c300d97aa0ddee5..b8b5d0730a8ca396da9e6fe7539a30a3fa481163 100644 (file)
@@ -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
index db13e7128298d76c4186e7b4f3377c1ff205528f..7dfd575f019c976c87c89e8c727a6f545717ae03 100644 (file)
@@ -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
index 98b5ed1c1c7f3781131f4fa677c9839e55d760a0..8a673d7d74edf486ade767507c439ed5f87bb858 100644 (file)
@@ -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"
 
 
index e5a917f121cc7d88013b3cfe77a225a3d042ada1..815a088d0ae94b8b1b94ec85fdccc23be5562fbf 100644 (file)
@@ -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
index d3cd28cbeef50b3bf26a25da446ca5c7881abb20..88df19bd437c22b0312b80dcc689747ee57c74ce 100644 (file)
@@ -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"
 
index 7364cc5b9a951926f119aec6d1327fea3da4dd7a..65ec0452403029bbe034777a49019654c56e5443 100644 (file)
@@ -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 (file)
index 0000000..0757a40
--- /dev/null
@@ -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
index 62f6cd42386cb4c519257aaff761b77418f82ea0..30cb8b17468f48e9efd5ccc5643f59e09b4478ac 100644 (file)
@@ -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"
 
index 8a811a3defe5313a711bacbc469970c8f7ae8a26..67fae51ea1ebf49dbceb37aab75ce50f0c381a74 100644 (file)
@@ -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
 
index bb32c8d7669fc56700434f663f5c4868dbb16436..6250906f3f154239fd735763e3208256e3d1d804 100644 (file)
@@ -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);
 
index 4193aaa97cf63011c065eff58a4e6fe171d95740..2ef43aec118f98dbe01cadf0e272179f4ef93d04 100644 (file)
@@ -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);
 
index 971ccb853e144c6db67f91b77f8691fe584ae43d..c4ccad16df5e17bf649798529ef8b6de3d7e3400 100644 (file)
@@ -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);
 
index e2ebafc6db2261cf92635f222fb05448305a9b72..1382d2028f9a3914efe123a9ddbb1f216a61a9bd 100644 (file)
@@ -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);
 
index 15db225d237507f1d1146308e86477f2e7947831..89ce331ffa60bc3033e86aa7a239ea1e82e53acf 100644 (file)
@@ -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);
 
index a33f7d915db9752496e239c1bbf219087f9f9454..32b70026324613e86f4ef154dcf4169ab3aa0f0f 100644 (file)
@@ -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);
 
index bf05af3e2811d9a9e28e3f73df842a9270f3cf8a..b19123608601fc893a41b625172eb371238b41b5 100644 (file)
@@ -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
 
index 13630fb54604c2651b9465787b20b58f1827737d..d2f4a85d0c5aaa054e19ac302405bd65a5cfe3a0 100644 (file)
@@ -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
 
index 61119333526d8d694052274cefc258626c101647..c82c35340c5901387ed3094dc7e8bd7d73c06f43 100644 (file)
@@ -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);
 
index 88965a542b75a757a5f2ca8d9e2baa5af78ae4df..309f17eb83f36dbd811f0199e77c75cc00ab4ea5 100644 (file)
@@ -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);
 
index 12d3dbeb14d44718e089438f63f3ed7f6602be4b..5188d4bc0b3a32dcae11c40db13eacbe664097bd 100644 (file)
@@ -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);
 
index 362832d15c48ba8e6b88b2a8df3d6e73972f399a..8c31f8de9bc4f61f2cd6bdb61b97a9168136924d 100644 (file)
@@ -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);
 
index c54aceef5920f77498dbdb3eaa99a8ef411f398a..96b8dcac7474cbc68703129659395c76984f9716 100644 (file)
@@ -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);
 
index 83aeb64a773d30a16617eb794f36cc839c849630..e3e9328640ca93162924de6a71bf1763c4b76fc5 100644 (file)
@@ -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);
 
index dfb0b778cdcf6be1e26c293c577012a31479493e..adff48b8b2f4c2f7a3e7e220a83baaab56296715 100644 (file)
@@ -1,5 +1,5 @@
 #include <smmintrin.h>
-#include <math.h>
+#include "math_m_pi.h"
 
 #define NUM 64
 
index cd1107110ccb2d1929de18ba05df916e3d34feaa..1416dc9a79853c88be3afc74b0d72170bda7d9b1 100644 (file)
@@ -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);
 
index b55e5df0585f76eb9d913c2e23e10fad46bb36f2..fc0aead01fb3bafae594676d411c6b506bc0a650 100644 (file)
@@ -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);
 
index 8baee3390177a59f8ecf30f58787f26822d77bf8..37f20285f54d0cd1b152529ea5a2334fc9900e8f 100644 (file)
@@ -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"
index 86b78ed75782b11fee35ac3fbe0909a2d7efdef7..7f0475f75cebb2a35bb67f4a67a722b98ed2cc83 100644 (file)
@@ -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"
index 6e6a05c59c2548271fbaab1e1e5dc8de2cd310e7..4a1f81026f04822365b20be5e2fadc0426b1b8c7 100644 (file)
@@ -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"
index fab227869fc4a1762a4c061ef96be33e17b635f3..fa8002d7e7109fb7ada6e57f04d6e40d837c6e3f 100644 (file)
@@ -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"
 
index 405c55d45a4d269fd65f09011220e204082d3e23..673c786258d425ec6c2ee7cb437697aa87a723af 100644 (file)
@@ -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"
 
index 97485b9586767da3560edc755353cc1ae2493b19..9b52ae5ba2aa5e60e76218abe5ff44eeaa31ef0b 100644 (file)
@@ -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"
 
index e6cec0b9478a3274a839c69adffa49da3c69ac30..f3ecd0e2744e12a400d4104fdd4c471ce096c2a3 100644 (file)
@@ -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"
 
index 54ca21f8f2cd01c9542caa51ea2431124f18b362..91dfd38fd96190b5643ac9526dcce770b0020758 100644 (file)
@@ -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"
 
index a59d6f86e5fac670e7f8f525b0c21e2056d30396..0a69e0663eb4df9ece5b9a167f2fe5398046c5ec 100644 (file)
@@ -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"
 
index ff8b09eeba62f771ab3d6802e986c7b9bd91e225..d8dcca00efacec120244ac45b75897ac42537469 100644 (file)
@@ -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
index 9c20b90ad05e4ee2affc5230ea5ef3eb57555a51..01940bd0ba11b859c96cafdf2ae4474ece8cd15b 100644 (file)
@@ -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"
 
index 072664e1573e9a0e68055345a488f07790cc9a9f..4c73331a277487c66d7721538eafe660d286ac66 100644 (file)
@@ -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"
 
index 97c69fdbcb25ffeaab1efcd54d1416336507bac9..774c1939c3030f79947589d438302be76cd579d8 100644 (file)
@@ -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"
 
index 95488908630181827898498216bb2ac0f9f59af7..0a9ab59e42cb1d83076abdcaf501724f457694f2 100644 (file)
@@ -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
index 5c2708379807005521b3b54457fe70c7e82d2bc0..4f4786c7016854a8ce3d7881ea8119e7404a874b 100644 (file)
@@ -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);
 
index e491feedd9230e349270355b144996468caa7986..691ea7b8e787f67caadc9815a78f44dae1961c8e 100644 (file)
@@ -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);