]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add -mfpmath=sse/-mtune=generic to FMA tests.
authorH.J. Lu <hongjiu.lu@intel.com>
Wed, 12 Oct 2011 17:39:11 +0000 (17:39 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Wed, 12 Oct 2011 17:39:11 +0000 (10:39 -0700)
2011-10-12  H.J. Lu  <hongjiu.lu@intel.com>

* gcc.target/i386/fma_run_double_1.c: Add -mfpmath=sse.
* gcc.target/i386/fma_run_double_2.c: Likewise.
* gcc.target/i386/fma_run_double_3.c: Likewise.
* gcc.target/i386/fma_run_double_4.c: Likewise.
* gcc.target/i386/fma_run_double_5.c: Likewise.
* gcc.target/i386/fma_run_double_6.c: Likewise.
* gcc.target/i386/fma_run_float_1.c: Likewise.
* gcc.target/i386/fma_run_float_2.c: Likewise.
* gcc.target/i386/fma_run_float_3.c: Likewise.
* gcc.target/i386/fma_run_float_4.c: Likewise.
* gcc.target/i386/fma_run_float_5.c: Likewise.
* gcc.target/i386/fma_run_float_6.c: Likewise.

* gcc.target/i386/l_fma_double_1.c: Add -mtune=generic and
remove the extra dg-options.
* gcc.target/i386/l_fma_double_2.c: Likewise.
* gcc.target/i386/l_fma_double_3.c: Likewise.
* gcc.target/i386/l_fma_double_4.c: Likewise.
* gcc.target/i386/l_fma_double_5.c: Likewise.
* gcc.target/i386/l_fma_double_6.c: Likewise.
* gcc.target/i386/l_fma_float_1.c: Likewise.
* gcc.target/i386/l_fma_float_2.c: Likewise.
* gcc.target/i386/l_fma_float_3.c: Likewise.
* gcc.target/i386/l_fma_float_4.c: Likewise.
* gcc.target/i386/l_fma_float_5.c: Likewise.
* gcc.target/i386/l_fma_float_6.c: Likewise.

From-SVN: r179861

25 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/fma_run_double_1.c
gcc/testsuite/gcc.target/i386/fma_run_double_2.c
gcc/testsuite/gcc.target/i386/fma_run_double_3.c
gcc/testsuite/gcc.target/i386/fma_run_double_4.c
gcc/testsuite/gcc.target/i386/fma_run_double_5.c
gcc/testsuite/gcc.target/i386/fma_run_double_6.c
gcc/testsuite/gcc.target/i386/fma_run_float_1.c
gcc/testsuite/gcc.target/i386/fma_run_float_2.c
gcc/testsuite/gcc.target/i386/fma_run_float_3.c
gcc/testsuite/gcc.target/i386/fma_run_float_4.c
gcc/testsuite/gcc.target/i386/fma_run_float_5.c
gcc/testsuite/gcc.target/i386/fma_run_float_6.c
gcc/testsuite/gcc.target/i386/l_fma_double_1.c
gcc/testsuite/gcc.target/i386/l_fma_double_2.c
gcc/testsuite/gcc.target/i386/l_fma_double_3.c
gcc/testsuite/gcc.target/i386/l_fma_double_4.c
gcc/testsuite/gcc.target/i386/l_fma_double_5.c
gcc/testsuite/gcc.target/i386/l_fma_double_6.c
gcc/testsuite/gcc.target/i386/l_fma_float_1.c
gcc/testsuite/gcc.target/i386/l_fma_float_2.c
gcc/testsuite/gcc.target/i386/l_fma_float_3.c
gcc/testsuite/gcc.target/i386/l_fma_float_4.c
gcc/testsuite/gcc.target/i386/l_fma_float_5.c
gcc/testsuite/gcc.target/i386/l_fma_float_6.c

index 5af301f78237d740f7f03f397b878911041ace9d..11a3cc6b106ef31714ecf73255fd73777a85e520 100644 (file)
@@ -1,3 +1,32 @@
+2011-10-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * gcc.target/i386/fma_run_double_1.c: Add -mfpmath=sse.
+       * gcc.target/i386/fma_run_double_2.c: Likewise.
+       * gcc.target/i386/fma_run_double_3.c: Likewise.
+       * gcc.target/i386/fma_run_double_4.c: Likewise.
+       * gcc.target/i386/fma_run_double_5.c: Likewise.
+       * gcc.target/i386/fma_run_double_6.c: Likewise.
+       * gcc.target/i386/fma_run_float_1.c: Likewise.
+       * gcc.target/i386/fma_run_float_2.c: Likewise.
+       * gcc.target/i386/fma_run_float_3.c: Likewise.
+       * gcc.target/i386/fma_run_float_4.c: Likewise.
+       * gcc.target/i386/fma_run_float_5.c: Likewise.
+       * gcc.target/i386/fma_run_float_6.c: Likewise.
+
+       * gcc.target/i386/l_fma_double_1.c: Add -mtune=generic and
+       remove the extra dg-options.
+       * gcc.target/i386/l_fma_double_2.c: Likewise.
+       * gcc.target/i386/l_fma_double_3.c: Likewise.
+       * gcc.target/i386/l_fma_double_4.c: Likewise.
+       * gcc.target/i386/l_fma_double_5.c: Likewise.
+       * gcc.target/i386/l_fma_double_6.c: Likewise.
+       * gcc.target/i386/l_fma_float_1.c: Likewise.
+       * gcc.target/i386/l_fma_float_2.c: Likewise.
+       * gcc.target/i386/l_fma_float_3.c: Likewise.
+       * gcc.target/i386/l_fma_float_4.c: Likewise.
+       * gcc.target/i386/l_fma_float_5.c: Likewise.
+       * gcc.target/i386/l_fma_float_6.c: Likewise.
+
 2011-10-12  Paul Koning  <pkoning@gcc.gnu.org>
 
        PR tree-optimization/50189
index d46327d23ee20835466b1d5a03cbaa1e4f9d50b3..79b219b874e47520e7d3aaa38c85dfd10fd1dd69 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do run } */
 /* { dg-prune-output ".*warning: 'sseregparm' attribute ignored.*" } */
 /* { dg-require-effective-target fma } */
-/* { dg-options "-O3 -mfma" } */
+/* { dg-options "-O3 -mfpmath=sse -mfma" } */
 
 /* Test that the compiler properly optimizes floating point multiply
    and add instructions into FMA3 instructions.  */
index 14d325c3af40ee3cd3a1b454f0a465b9b9c14139..ee1c50c432e8118d944dce76aee1420a7771ec85 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do run } */
 /* { dg-prune-output ".*warning: 'sseregparm' attribute ignored.*" } */
 /* { dg-require-effective-target fma } */
-/* { dg-options "-O3 -mfma" } */
+/* { dg-options "-O3 -mfpmath=sse -mfma" } */
 
 /* Test that the compiler properly optimizes floating point multiply
    and add instructions into FMA3 instructions.  */
index f61f3bf7664682ed4bd547b01e1dd1fb2228dadf..e55c41f6926b5b343902c28dec76755085a2942c 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do run } */
 /* { dg-prune-output ".*warning: 'sseregparm' attribute ignored.*" } */
 /* { dg-require-effective-target fma } */
-/* { dg-options "-O3 -mfma" } */
+/* { dg-options "-O3 -mfpmath=sse -mfma" } */
 
 /* Test that the compiler properly optimizes floating point multiply
    and add instructions into FMA3 instructions.  */
index 36d89ed979f04b9a3e2cc434bb1211c8ff24cdf8..59128726bbaa7a4432c778b51a9778764de5b27f 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do run } */
 /* { dg-prune-output ".*warning: 'sseregparm' attribute ignored.*" } */
 /* { dg-require-effective-target fma } */
-/* { dg-options "-O3 -mfma" } */
+/* { dg-options "-O3 -mfpmath=sse -mfma" } */
 
 /* Test that the compiler properly optimizes floating point multiply
    and add instructions into FMA3 instructions.  */
index a43af769c032ab03099688b2ee89b240f16de04b..701b606e862540228dfb7ebd5d1da5495fcc1d69 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do run } */
 /* { dg-prune-output ".*warning: 'sseregparm' attribute ignored.*" } */
 /* { dg-require-effective-target fma } */
-/* { dg-options "-O3 -mfma" } */
+/* { dg-options "-O3 -mfpmath=sse -mfma" } */
 
 /* Test that the compiler properly optimizes floating point multiply
    and add instructions into FMA3 instructions.  */
index b72c87d13cb717146ef6b219a81acbc554d56260..5e9756d7d75cd66351fc80cbb2d6bf7f79a9b307 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do run } */
 /* { dg-prune-output ".*warning: 'sseregparm' attribute ignored.*" } */
 /* { dg-require-effective-target fma } */
-/* { dg-options "-O3 -mfma" } */
+/* { dg-options "-O3 -mfpmath=sse -mfma" } */
 
 /* Test that the compiler properly optimizes floating point multiply
    and add instructions into FMA3 instructions.  */
index 1ca34af62fe33c0be79bc006be7e94b4230be2b3..2c0766aa0a138134e933e623ff9da2b6d752a6e0 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do run } */
 /* { dg-prune-output ".*warning: 'sseregparm' attribute ignored.*" } */
 /* { dg-require-effective-target fma } */
-/* { dg-options "-O3 -mfma" } */
+/* { dg-options "-O3 -mfpmath=sse -mfma" } */
 
 /* Test that the compiler properly optimizes floating point multiply
    and add instructions into FMA3 instructions.  */
index 380fd3bd742f525e7f33d4a03fcd00d9b59818f8..701f32f65dc166174748c986678d91f9426056c6 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do run } */
 /* { dg-prune-output ".*warning: 'sseregparm' attribute ignored.*" } */
 /* { dg-require-effective-target fma } */
-/* { dg-options "-O3 -mfma" } */
+/* { dg-options "-O3 -mfpmath=sse -mfma" } */
 
 /* Test that the compiler properly optimizes floating point multiply
    and add instructions into FMA3 instructions.  */
index 0b09056cd36056a9ff4113c10abfbad33a3c8139..73e2a8d762686c90e3b999132fb55e6550c475c7 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do run } */
 /* { dg-prune-output ".*warning: 'sseregparm' attribute ignored.*" } */
 /* { dg-require-effective-target fma } */
-/* { dg-options "-O3 -mfma" } */
+/* { dg-options "-O3 -mfpmath=sse -mfma" } */
 
 /* Test that the compiler properly optimizes floating point multiply
    and add instructions into FMA3 instructions.  */
index e44a62cb92f057726e49d5dc6cde949ca2d3d271..860d361ad7f00300d45f80063da106e2cf58e901 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do run } */
 /* { dg-prune-output ".*warning: 'sseregparm' attribute ignored.*" } */
 /* { dg-require-effective-target fma } */
-/* { dg-options "-O3 -mfma" } */
+/* { dg-options "-O3 -mfpmath=sse -mfma" } */
 
 /* Test that the compiler properly optimizes floating point multiply
    and add instructions into FMA3 instructions.  */
index 10c4f2beab1dd48f00dbff9af9a3bc485cdede2b..93a0c09d61325b26d29a56ac4c77dc91e2670a20 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do run } */
 /* { dg-prune-output ".*warning: 'sseregparm' attribute ignored.*" } */
 /* { dg-require-effective-target fma } */
-/* { dg-options "-O3 -mfma" } */
+/* { dg-options "-O3 -mfpmath=sse -mfma" } */
 
 /* Test that the compiler properly optimizes floating point multiply
    and add instructions into FMA3 instructions.  */
index 95c44a1ca1364a702729d8c59e858fd3c03e6378..5004e2d756d8bc0fee17930442caed075618ae4f 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do run } */
 /* { dg-prune-output ".*warning: 'sseregparm' attribute ignored.*" } */
 /* { dg-require-effective-target fma } */
-/* { dg-options "-O3 -mfma" } */
+/* { dg-options "-O3 -mfpmath=sse -mfma" } */
 
 /* Test that the compiler properly optimizes floating point multiply
    and add instructions into FMA3 instructions.  */
index 81f6111f98e81066fef577071af2ebd8d7287c6e..c5d5b6ac09a3d06c9b2cbf5c4525b603876368f7 100644 (file)
@@ -1,13 +1,10 @@
 /* { dg-do compile } */
 /* { dg-prune-output ".*warning: 'sseregparm' attribute ignored.*" } */
-/* { dg-options "-O2 -mfma" } */
+/* { dg-options "-O3 -mfpmath=sse -mfma -mtune=generic" } */
 
 /* Test that the compiler properly optimizes floating point multiply
    and add instructions into FMA3 instructions.  */
 
-/* { dg-options "-O3 -mfpmath=sse -mfma" } */
-
-
 #define TYPE double
 
 #include "l_fma_1.h"
index cb100f6b2bcf47642082f13554c78c20f01430e3..cc52c75efbd413b6fd642fdef18386e648c6892a 100644 (file)
@@ -1,13 +1,10 @@
 /* { dg-do compile } */
 /* { dg-prune-output ".*warning: 'sseregparm' attribute ignored.*" } */
-/* { dg-options "-O2 -mfma" } */
+/* { dg-options "-O3 -mfpmath=sse -mfma -mtune=generic" } */
 
 /* Test that the compiler properly optimizes floating point multiply
    and add instructions into FMA3 instructions.  */
 
-/* { dg-options "-O3 -mfpmath=sse -mfma" } */
-
-
 #define TYPE double
 
 #include "l_fma_2.h"
index 3aa11399588ab201f36227d792eb243cf0753d8d..0e26f2a15d4a0aa51a27b55585491da74ce76288 100644 (file)
@@ -1,13 +1,10 @@
 /* { dg-do compile } */
 /* { dg-prune-output ".*warning: 'sseregparm' attribute ignored.*" } */
-/* { dg-options "-O2 -mfma" } */
+/* { dg-options "-O3 -mfpmath=sse -mfma -mtune=generic" } */
 
 /* Test that the compiler properly optimizes floating point multiply
    and add instructions into FMA3 instructions.  */
 
-/* { dg-options "-O3 -mfpmath=sse -mfma" } */
-
-
 #define TYPE double
 
 #include "l_fma_3.h"
index 97b3a18244d90bdf7aa1d0d018843f190cd1637d..0951330c1acd366b8135c30a83194adf9f348635 100644 (file)
@@ -1,13 +1,10 @@
 /* { dg-do compile } */
 /* { dg-prune-output ".*warning: 'sseregparm' attribute ignored.*" } */
-/* { dg-options "-O2 -mfma" } */
+/* { dg-options "-O3 -mfpmath=sse -mfma -mtune=generic" } */
 
 /* Test that the compiler properly optimizes floating point multiply
    and add instructions into FMA3 instructions.  */
 
-/* { dg-options "-O3 -mfpmath=sse -mfma" } */
-
-
 #define TYPE double
 
 #include "l_fma_4.h"
index 743d5a738a295b55afb9ef2b54c13330f46ff0f4..ceb64902a2a0a5961e25feae7bce0183102cc000 100644 (file)
@@ -1,13 +1,10 @@
 /* { dg-do compile } */
 /* { dg-prune-output ".*warning: 'sseregparm' attribute ignored.*" } */
-/* { dg-options "-O2 -mfma" } */
+/* { dg-options "-O3 -mfpmath=sse -mfma -mtune=generic" } */
 
 /* Test that the compiler properly optimizes floating point multiply
    and add instructions into FMA3 instructions.  */
 
-/* { dg-options "-O3 -mfpmath=sse -mfma" } */
-
-
 #define TYPE double
 
 #include "l_fma_5.h"
index 4f433d5b4794574bac09afc5363cdf6982f3f8aa..4360693dff5adc156a4ff082c34faba4600b6d45 100644 (file)
@@ -1,13 +1,10 @@
 /* { dg-do compile } */
 /* { dg-prune-output ".*warning: 'sseregparm' attribute ignored.*" } */
-/* { dg-options "-O2 -mfma" } */
+/* { dg-options "-O3 -mfpmath=sse -mfma -mtune=generic" } */
 
 /* Test that the compiler properly optimizes floating point multiply
    and add instructions into FMA3 instructions.  */
 
-/* { dg-options "-O3 -mfpmath=sse -mfma" } */
-
-
 #define TYPE double
 
 #include "l_fma_6.h"
index bc44d15b564ae57fb9f13189031fe94988ee93b3..b2cdbdc23092ce365c07fa8bf428a1853675b1a8 100644 (file)
@@ -1,13 +1,10 @@
 /* { dg-do compile } */
 /* { dg-prune-output ".*warning: 'sseregparm' attribute ignored.*" } */
-/* { dg-options "-O2 -mfma" } */
+/* { dg-options "-O3 -mfpmath=sse -mfma -mtune=generic" } */
 
 /* Test that the compiler properly optimizes floating point multiply
    and add instructions into FMA3 instructions.  */
 
-/* { dg-options "-O3 -mfpmath=sse -mfma" } */
-
-
 #define TYPE float
 
 #include "l_fma_1.h"
index 8e4db8a324f11e9d0f9de6db08f256b944d662d1..9926e84cebad8e8900e22e3d0855f3d10700f0a5 100644 (file)
@@ -1,13 +1,10 @@
 /* { dg-do compile } */
 /* { dg-prune-output ".*warning: 'sseregparm' attribute ignored.*" } */
-/* { dg-options "-O2 -mfma" } */
+/* { dg-options "-O3 -mfpmath=sse -mfma -mtune=generic" } */
 
 /* Test that the compiler properly optimizes floating point multiply
    and add instructions into FMA3 instructions.  */
 
-/* { dg-options "-O3 -mfpmath=sse -mfma" } */
-
-
 #define TYPE float
 
 #include "l_fma_2.h"
index 397618a48f46f228bac931307d7c609da5f694d9..e365a261b0de51960fc7ad83ea9cf79845686760 100644 (file)
@@ -1,13 +1,10 @@
 /* { dg-do compile } */
 /* { dg-prune-output ".*warning: 'sseregparm' attribute ignored.*" } */
-/* { dg-options "-O2 -mfma" } */
+/* { dg-options "-O3 -mfpmath=sse -mfma -mtune=generic" } */
 
 /* Test that the compiler properly optimizes floating point multiply
    and add instructions into FMA3 instructions.  */
 
-/* { dg-options "-O3 -mfpmath=sse -mfma" } */
-
-
 #define TYPE float
 
 #include "l_fma_3.h"
index 6ba667ae2c9886da567ae44f79a9edf1146c84db..b0ae671ebcac88192587f769826fe10c0ee23d38 100644 (file)
@@ -1,13 +1,10 @@
 /* { dg-do compile } */
 /* { dg-prune-output ".*warning: 'sseregparm' attribute ignored.*" } */
-/* { dg-options "-O2 -mfma" } */
+/* { dg-options "-O3 -mfpmath=sse -mfma -mtune=generic" } */
 
 /* Test that the compiler properly optimizes floating point multiply
    and add instructions into FMA3 instructions.  */
 
-/* { dg-options "-O3 -mfpmath=sse -mfma" } */
-
-
 #define TYPE float
 
 #include "l_fma_4.h"
index 0f7b3aa39582be2affd7eb306d0b000ecaa569cc..d574959b4729eedcb6c277d878e070cd167527d1 100644 (file)
@@ -1,13 +1,10 @@
 /* { dg-do compile } */
 /* { dg-prune-output ".*warning: 'sseregparm' attribute ignored.*" } */
-/* { dg-options "-O2 -mfma" } */
+/* { dg-options "-O3 -mfpmath=sse -mfma -mtune=generic" } */
 
 /* Test that the compiler properly optimizes floating point multiply
    and add instructions into FMA3 instructions.  */
 
-/* { dg-options "-O3 -mfpmath=sse -mfma" } */
-
-
 #define TYPE float
 
 #include "l_fma_5.h"
index f53f0c0c5769c7722f2e8c2d09cf51e9a2b67476..7ab8dd3b38867e6fd5cacf77659a6f547a53e05a 100644 (file)
@@ -1,13 +1,10 @@
 /* { dg-do compile } */
 /* { dg-prune-output ".*warning: 'sseregparm' attribute ignored.*" } */
-/* { dg-options "-O2 -mfma" } */
+/* { dg-options "-O3 -mfpmath=sse -mfma -mtune=generic" } */
 
 /* Test that the compiler properly optimizes floating point multiply
    and add instructions into FMA3 instructions.  */
 
-/* { dg-options "-O3 -mfpmath=sse -mfma" } */
-
-
 #define TYPE float
 
 #include "l_fma_6.h"