Add -mfpmath=sse/-mtune=generic to FMA tests.
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Oct 2011 17:39:11 +0000 (17:39 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Oct 2011 17:39:11 +0000 (17:39 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179861 138bc75d-0d04-0410-961f-82ee72b054a4

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 5af301f..11a3cc6 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 d46327d..79b219b 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 14d325c..ee1c50c 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 f61f3bf..e55c41f 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 36d89ed..5912872 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 a43af76..701b606 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 b72c87d..5e9756d 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 1ca34af..2c0766a 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 380fd3b..701f32f 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 0b09056..73e2a8d 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 e44a62c..860d361 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 10c4f2b..93a0c09 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 95c44a1..5004e2d 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 81f6111..c5d5b6a 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 cb100f6..cc52c75 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 3aa1139..0e26f2a 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 97b3a18..0951330 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 743d5a7..ceb6490 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 4f433d5..4360693 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 bc44d15..b2cdbdc 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 8e4db8a..9926e84 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 397618a..e365a26 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 6ba667a..b0ae671 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 0f7b3aa..d574959 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 f53f0c0..7ab8dd3 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"