]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
387-2.c: Skip if -march= is specified.
authorUros Bizjak <ubizjak@gmail.com>
Sat, 6 Nov 2010 10:54:44 +0000 (11:54 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Sat, 6 Nov 2010 10:54:44 +0000 (11:54 +0100)
* gcc.target/i386/387-2.c: Skip if -march= is specified.
* gcc.target/i386/387-6.c: Ditto.
* gcc.target/i386/387-2.c: Add -mfancy-math-387 to dg-options.
* gcc.target/i386/387-4.c: Ditto.
* gcc.target/i386/387-7.c: Ditto.
* gcc.target/i386/387-8.c: Ditto.
* gcc.target/i386/387-9.c: Ditto.
* gcc.target/i386/387-10.c: Ditto.
* gcc.target/i386/387-11.c: Ditto.
* gcc.target/i386/387-12.c: Ditto.

* gcc.target/i386/387-2.c: Add -mno-sse3 to dg-options.

From-SVN: r166400

12 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/387-10.c
gcc/testsuite/gcc.target/i386/387-11.c
gcc/testsuite/gcc.target/i386/387-12.c
gcc/testsuite/gcc.target/i386/387-2.c
gcc/testsuite/gcc.target/i386/387-3.c
gcc/testsuite/gcc.target/i386/387-4.c
gcc/testsuite/gcc.target/i386/387-6.c
gcc/testsuite/gcc.target/i386/387-7.c
gcc/testsuite/gcc.target/i386/387-8.c
gcc/testsuite/gcc.target/i386/387-9.c
gcc/testsuite/gcc.target/i386/funcspec-8.c

index 4db13137877ba1086a89b7e7f29313d17755fe32..a175424fcae381fe97331d19305dd25fad4fffd3 100644 (file)
@@ -1,3 +1,18 @@
+2010-11-06  Uros Bizjak  <ubizjak@gmail.com>
+
+       * gcc.target/i386/387-2.c: Skip if -march= is specified.
+       * gcc.target/i386/387-6.c: Ditto.
+       * gcc.target/i386/387-2.c: Add -mfancy-math-387 to dg-options.
+       * gcc.target/i386/387-4.c: Ditto.
+       * gcc.target/i386/387-7.c: Ditto.
+       * gcc.target/i386/387-8.c: Ditto.
+       * gcc.target/i386/387-9.c: Ditto.
+       * gcc.target/i386/387-10.c: Ditto.
+       * gcc.target/i386/387-11.c: Ditto.
+       * gcc.target/i386/387-12.c: Ditto.
+
+       * gcc.target/i386/387-2.c: Add -mno-sse3 to dg-options.
+
 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
 
        PR target/44981
index 565f0196e8862548241c9f1c42553b2da2a898ee..0ff1b2a7c7cd8d0cf807bd306dcc9217ed8f1b92 100644 (file)
@@ -1,6 +1,6 @@
 /* PR tree-optimization/24964 */
 /* { dg-do compile } */
-/* { dg-options "-O2 -mfpmath=387" } */
+/* { dg-options "-O2 -mfpmath=387 -mfancy-math-387" } */
 
 double fabs(double x);
 
index 03020f64fde236885ec02a759f4f064e20eac36b..869f6061c3842c77f04a437d229fe8c7271937f1 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -mfpmath=387" } */
+/* { dg-options "-O2 -mfpmath=387 -mfancy-math-387" } */
 
 double foo(double x, double y)
 {
index 6b3ce240540dd7e1848445ea88270fe19011e3a0..62c1d483c278a057f5afb5b1290d705ffe9eaa0d 100644 (file)
@@ -1,7 +1,6 @@
 /* PR target/26915 */
 /* { dg-do compile } */
-/* { dg-require-effective-target ilp32 } */
-/* { dg-options "-O" } */
+/* { dg-options "-O -mfpmath=387 -mfancy-math-387" } */
 
 double testm0(void)
 {
index 5a317efea57703cd3a8e2ca190ef57e4bb0c3373..bd6dbcdda993ef4d871b55aa49725539cc8fd1be 100644 (file)
@@ -1,6 +1,7 @@
 /* Verify that -march overrides -mno-fancy-math-387.  */
 /* { dg-do compile } */
 /* { dg-require-effective-target ilp32 } */
+/* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=i686" } } */
 /* { dg-options "-O -ffast-math -mfpmath=387 -march=i686 -mno-fancy-math-387" } */
 /* { dg-final { scan-assembler "fsin" } } */
 /* { dg-final { scan-assembler "fcos" } } */
index ce11faa8f863e797c5a096649e18ab5c861f309d..d00c7296721eaeb4d181f353b4839aea58703028 100644 (file)
@@ -1,7 +1,6 @@
 /* Verify that 387 mathematical constants are recognized.  */
 /* { dg-do compile } */
-/* { dg-require-effective-target ilp32 } */
-/* { dg-options "-O2 -march=i686" } */
+/* { dg-options "-O2 -mfpmath=387 -mfancy-math-387" } */
 /* { dg-final { scan-assembler "fldpi" } } */
 
 long double add_pi(long double x)
index 5617636da565baacdfabcc23f63705730bf7d6bd..e4f4a48f2ef52fc58d5a3c71bb01e4e3bc67161f 100644 (file)
@@ -1,6 +1,5 @@
 /* { dg-do compile } */
-/* { dg-require-effective-target ilp32 } */
-/* { dg-options "-O2 -march=i686" } */
+/* { dg-options "-O2 -mfancy-math-387" } */
 /* { dg-final { scan-assembler "fldpi" } } */
 
 long double atanl (long double);
index bfef46ae5f58500d0c2be9c48f70e74cd428f06b..7b254d1302f5d1863c43307d55c6ee50d0ce4974 100644 (file)
@@ -1,6 +1,7 @@
 /* Verify that -march overrides -mno-fancy-math-387.  */
 /* { dg-do compile } */
 /* { dg-require-effective-target ilp32 } */
+/* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=i686" } } */
 /* { dg-options "-O -ffast-math -mfpmath=387 -march=i686 -mno-fancy-math-387" } */
 /* { dg-final { scan-assembler "fpatan" } } */
 /* { dg-final { scan-assembler "fyl2xp1" } } */
index 61c82c95eed4baf83d4b81e265ac8f41546344c8..e01ed2e057638b4633a3055b6780325ecae5d55c 100644 (file)
@@ -1,7 +1,6 @@
 /* Verify that 387 fsincos instruction is generated.  */
 /* { dg-do compile } */
-/* { dg-require-effective-target ilp32 } */
-/* { dg-options "-O -ffast-math -march=i686" } */
+/* { dg-options "-O -ffast-math -mfpmath=387 -mfancy-math-387" } */
 /* { dg-final { scan-assembler "fsincos" } } */
 
 extern double sin (double);
index 3293f560c25c27297329de948efdf2ddba2e0e8b..2dbcd740f62e46974ec5a45805c0525cfd678e57 100644 (file)
@@ -2,8 +2,7 @@
    inherent load of 1.0 is used in further calculations.  */
 
 /* { dg-do compile } */
-/* { dg-require-effective-target ilp32 } */
-/* { dg-options "-O2 -ffast-math -march=i686" } */
+/* { dg-options "-O2 -ffast-math -mfpmath=387 -mfancy-math-387" } */
 /* { dg-final { scan-assembler "fptan" } } */
 /* { dg-final { scan-assembler-not "fld1" } } */
 
index 9d126aff8ddaa759398b0dd8c9952cd6c5469aff..2667aa46872d6d66b4df58aa69c39a61330a205e 100644 (file)
@@ -1,7 +1,6 @@
 /* Verify that 387 fsincos instruction is generated.  */
 /* { dg-do compile } */
-/* { dg-require-effective-target ilp32 } */
-/* { dg-options "-O -funsafe-math-optimizations -march=i686" } */
+/* { dg-options "-O -funsafe-math-optimizations -mfpmath=387 -mfancy-math-387" } */
 
 extern double sin (double);
 extern double cos (double);
index ba4b7f22743fe3070d3e86682248d538f304ec63..225843493d9cdf33fde3e3427149719e8ac4a574 100644 (file)
@@ -2,7 +2,7 @@
    functions in functions with the appropriate function specific options.  */
 /* { dg-do compile } */
 /* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=k8" } } */
-/* { dg-options "-O2 -march=k8 -mfpmath=sse" } */
+/* { dg-options "-O2 -march=k8 -mno-sse3 -mfpmath=sse" } */
 
 typedef float     __m128  __attribute__ ((__vector_size__ (16), __may_alias__));
 typedef double    __m128d __attribute__ ((__vector_size__ (16), __may_alias__));