[PATCH, testsuite, i386] FMA3 testcases + typo fix in MD

H.J. Lu hjl.tools@gmail.com
Wed Oct 12 18:12:00 GMT 2011


On Tue, Oct 11, 2011 at 8:37 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Tue, Oct 11, 2011 at 3:12 AM, Kirill Yukhin <kirill.yukhin@gmail.com> wrote:
>> Hi
>> Uros, you was right both with fpmath and configflags. That is why it
>> was passing for me.
>>
>> Attached patch which cures the problem.
>>
>> testsuite/ChangeLog entry:
>>
>> 2011-10-11  Kirill Yukhin  <kirill.yukhin@intel.com>
>>
>>        * gcc.target/i386/fma_double_1.c: Add -mfpmath=sse.
>>        * gcc.target/i386/fma_double_2.c: Ditto.
>>        * gcc.target/i386/fma_double_3.c: Ditto.
>>        * gcc.target/i386/fma_double_4.c: Ditto.
>>        * gcc.target/i386/fma_double_5.c: Ditto.
>>        * gcc.target/i386/fma_double_6.c: Ditto.
>>        * gcc.target/i386/fma_float_1.c: Ditto.
>>        * gcc.target/i386/fma_float_2.c: Ditto.
>>        * gcc.target/i386/fma_float_3.c: Ditto.
>>        * gcc.target/i386/fma_float_4.c: Ditto.
>>        * gcc.target/i386/fma_float_5.c: Ditto.
>>        * gcc.target/i386/fma_float_6.c: Ditto.
>>        * gcc.target/i386/l_fma_double_1.c: Ditto.
>>        * gcc.target/i386/l_fma_double_2.c: Ditto.
>>        * gcc.target/i386/l_fma_double_3.c: Ditto.
>>        * gcc.target/i386/l_fma_double_4.c: Ditto.
>>        * gcc.target/i386/l_fma_double_5.c: Ditto.
>>        * gcc.target/i386/l_fma_double_6.c: Ditto.
>>        * gcc.target/i386/l_fma_float_1.c: Ditto.
>>        * gcc.target/i386/l_fma_float_2.c: Ditto.
>>        * gcc.target/i386/l_fma_float_3.c: Ditto.
>>        * gcc.target/i386/l_fma_float_4.c: Ditto.
>>        * gcc.target/i386/l_fma_float_5.c: Ditto.
>>        * gcc.target/i386/l_fma_float_6.c: Ditto.
>>        * gcc.target/i386/l_fma_run_double_1.c: Ditto.
>>        * gcc.target/i386/l_fma_run_double_2.c: Ditto.
>>        * gcc.target/i386/l_fma_run_double_3.c: Ditto.
>>        * gcc.target/i386/l_fma_run_double_4.c: Ditto.
>>        * gcc.target/i386/l_fma_run_double_5.c: Ditto.
>>        * gcc.target/i386/l_fma_run_double_6.c: Ditto.
>>        * gcc.target/i386/l_fma_run_float_1.c: Ditto.
>>        * gcc.target/i386/l_fma_run_float_2.c: Ditto.
>>        * gcc.target/i386/l_fma_run_float_3.c: Ditto.
>>        * gcc.target/i386/l_fma_run_float_4.c: Ditto.
>>        * gcc.target/i386/l_fma_run_float_5.c: Ditto.
>>        * gcc.target/i386/l_fma_run_float_6.c: Ditto.
>>
>> Could you please have a look?
>>
>> Sorry for inconvenience, K
>>
>
> All double vector tests are failed when GCC is configured with
> --with-cpu=atom since double vectorizer is turned off by default.
> You should add -mtune=generic to those tests.
>

I checked in this patch to add -mfpmath=sse/-mtune=generic to FMA tests.
I also removed the extra dg-options.  Tested on Linux/ia32 and Linux/x96-64.


-- 
H.J.
---
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 5af301f..11a3cc6 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
diff --git a/gcc/testsuite/gcc.target/i386/fma_run_double_1.c
b/gcc/testsuite/gcc.target/i386/fma_run_double_1.c
index d46327d..79b219b 100644
--- a/gcc/testsuite/gcc.target/i386/fma_run_double_1.c
+++ b/gcc/testsuite/gcc.target/i386/fma_run_double_1.c
@@ -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.  */
diff --git a/gcc/testsuite/gcc.target/i386/fma_run_double_2.c
b/gcc/testsuite/gcc.target/i386/fma_run_double_2.c
index 14d325c..ee1c50c 100644
--- a/gcc/testsuite/gcc.target/i386/fma_run_double_2.c
+++ b/gcc/testsuite/gcc.target/i386/fma_run_double_2.c
@@ -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.  */
diff --git a/gcc/testsuite/gcc.target/i386/fma_run_double_3.c
b/gcc/testsuite/gcc.target/i386/fma_run_double_3.c
index f61f3bf..e55c41f 100644
--- a/gcc/testsuite/gcc.target/i386/fma_run_double_3.c
+++ b/gcc/testsuite/gcc.target/i386/fma_run_double_3.c
@@ -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.  */
diff --git a/gcc/testsuite/gcc.target/i386/fma_run_double_4.c
b/gcc/testsuite/gcc.target/i386/fma_run_double_4.c
index 36d89ed..5912872 100644
--- a/gcc/testsuite/gcc.target/i386/fma_run_double_4.c
+++ b/gcc/testsuite/gcc.target/i386/fma_run_double_4.c
@@ -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.  */
diff --git a/gcc/testsuite/gcc.target/i386/fma_run_double_5.c
b/gcc/testsuite/gcc.target/i386/fma_run_double_5.c
index a43af76..701b606 100644
--- a/gcc/testsuite/gcc.target/i386/fma_run_double_5.c
+++ b/gcc/testsuite/gcc.target/i386/fma_run_double_5.c
@@ -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.  */
diff --git a/gcc/testsuite/gcc.target/i386/fma_run_double_6.c
b/gcc/testsuite/gcc.target/i386/fma_run_double_6.c
index b72c87d..5e9756d 100644
--- a/gcc/testsuite/gcc.target/i386/fma_run_double_6.c
+++ b/gcc/testsuite/gcc.target/i386/fma_run_double_6.c
@@ -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.  */
diff --git a/gcc/testsuite/gcc.target/i386/fma_run_float_1.c
b/gcc/testsuite/gcc.target/i386/fma_run_float_1.c
index 1ca34af..2c0766a 100644
--- a/gcc/testsuite/gcc.target/i386/fma_run_float_1.c
+++ b/gcc/testsuite/gcc.target/i386/fma_run_float_1.c
@@ -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.  */
diff --git a/gcc/testsuite/gcc.target/i386/fma_run_float_2.c
b/gcc/testsuite/gcc.target/i386/fma_run_float_2.c
index 380fd3b..701f32f 100644
--- a/gcc/testsuite/gcc.target/i386/fma_run_float_2.c
+++ b/gcc/testsuite/gcc.target/i386/fma_run_float_2.c
@@ -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.  */
diff --git a/gcc/testsuite/gcc.target/i386/fma_run_float_3.c
b/gcc/testsuite/gcc.target/i386/fma_run_float_3.c
index 0b09056..73e2a8d 100644
--- a/gcc/testsuite/gcc.target/i386/fma_run_float_3.c
+++ b/gcc/testsuite/gcc.target/i386/fma_run_float_3.c
@@ -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.  */
diff --git a/gcc/testsuite/gcc.target/i386/fma_run_float_4.c
b/gcc/testsuite/gcc.target/i386/fma_run_float_4.c
index e44a62c..860d361 100644
--- a/gcc/testsuite/gcc.target/i386/fma_run_float_4.c
+++ b/gcc/testsuite/gcc.target/i386/fma_run_float_4.c
@@ -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.  */
diff --git a/gcc/testsuite/gcc.target/i386/fma_run_float_5.c
b/gcc/testsuite/gcc.target/i386/fma_run_float_5.c
index 10c4f2b..93a0c09 100644
--- a/gcc/testsuite/gcc.target/i386/fma_run_float_5.c
+++ b/gcc/testsuite/gcc.target/i386/fma_run_float_5.c
@@ -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.  */
diff --git a/gcc/testsuite/gcc.target/i386/fma_run_float_6.c
b/gcc/testsuite/gcc.target/i386/fma_run_float_6.c
index 95c44a1..5004e2d 100644
--- a/gcc/testsuite/gcc.target/i386/fma_run_float_6.c
+++ b/gcc/testsuite/gcc.target/i386/fma_run_float_6.c
@@ -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.  */
diff --git a/gcc/testsuite/gcc.target/i386/l_fma_double_1.c
b/gcc/testsuite/gcc.target/i386/l_fma_double_1.c
index 81f6111..c5d5b6a 100644
--- a/gcc/testsuite/gcc.target/i386/l_fma_double_1.c
+++ b/gcc/testsuite/gcc.target/i386/l_fma_double_1.c
@@ -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"
diff --git a/gcc/testsuite/gcc.target/i386/l_fma_double_2.c
b/gcc/testsuite/gcc.target/i386/l_fma_double_2.c
index cb100f6..cc52c75 100644
--- a/gcc/testsuite/gcc.target/i386/l_fma_double_2.c
+++ b/gcc/testsuite/gcc.target/i386/l_fma_double_2.c
@@ -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"
diff --git a/gcc/testsuite/gcc.target/i386/l_fma_double_3.c
b/gcc/testsuite/gcc.target/i386/l_fma_double_3.c
index 3aa1139..0e26f2a 100644
--- a/gcc/testsuite/gcc.target/i386/l_fma_double_3.c
+++ b/gcc/testsuite/gcc.target/i386/l_fma_double_3.c
@@ -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"
diff --git a/gcc/testsuite/gcc.target/i386/l_fma_double_4.c
b/gcc/testsuite/gcc.target/i386/l_fma_double_4.c
index 97b3a18..0951330 100644
--- a/gcc/testsuite/gcc.target/i386/l_fma_double_4.c
+++ b/gcc/testsuite/gcc.target/i386/l_fma_double_4.c
@@ -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"
diff --git a/gcc/testsuite/gcc.target/i386/l_fma_double_5.c
b/gcc/testsuite/gcc.target/i386/l_fma_double_5.c
index 743d5a7..ceb6490 100644
--- a/gcc/testsuite/gcc.target/i386/l_fma_double_5.c
+++ b/gcc/testsuite/gcc.target/i386/l_fma_double_5.c
@@ -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"
diff --git a/gcc/testsuite/gcc.target/i386/l_fma_double_6.c
b/gcc/testsuite/gcc.target/i386/l_fma_double_6.c
index 4f433d5..4360693 100644
--- a/gcc/testsuite/gcc.target/i386/l_fma_double_6.c
+++ b/gcc/testsuite/gcc.target/i386/l_fma_double_6.c
@@ -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"
diff --git a/gcc/testsuite/gcc.target/i386/l_fma_float_1.c
b/gcc/testsuite/gcc.target/i386/l_fma_float_1.c
index bc44d15..b2cdbdc 100644
--- a/gcc/testsuite/gcc.target/i386/l_fma_float_1.c
+++ b/gcc/testsuite/gcc.target/i386/l_fma_float_1.c
@@ -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"
diff --git a/gcc/testsuite/gcc.target/i386/l_fma_float_2.c
b/gcc/testsuite/gcc.target/i386/l_fma_float_2.c
index 8e4db8a..9926e84 100644
--- a/gcc/testsuite/gcc.target/i386/l_fma_float_2.c
+++ b/gcc/testsuite/gcc.target/i386/l_fma_float_2.c
@@ -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"
diff --git a/gcc/testsuite/gcc.target/i386/l_fma_float_3.c
b/gcc/testsuite/gcc.target/i386/l_fma_float_3.c
index 397618a..e365a26 100644
--- a/gcc/testsuite/gcc.target/i386/l_fma_float_3.c
+++ b/gcc/testsuite/gcc.target/i386/l_fma_float_3.c
@@ -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"
diff --git a/gcc/testsuite/gcc.target/i386/l_fma_float_4.c
b/gcc/testsuite/gcc.target/i386/l_fma_float_4.c
index 6ba667a..b0ae671 100644
--- a/gcc/testsuite/gcc.target/i386/l_fma_float_4.c
+++ b/gcc/testsuite/gcc.target/i386/l_fma_float_4.c
@@ -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"
diff --git a/gcc/testsuite/gcc.target/i386/l_fma_float_5.c
b/gcc/testsuite/gcc.target/i386/l_fma_float_5.c
index 0f7b3aa..d574959 100644
--- a/gcc/testsuite/gcc.target/i386/l_fma_float_5.c
+++ b/gcc/testsuite/gcc.target/i386/l_fma_float_5.c
@@ -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"
diff --git a/gcc/testsuite/gcc.target/i386/l_fma_float_6.c
b/gcc/testsuite/gcc.target/i386/l_fma_float_6.c
index f53f0c0..7ab8dd3 100644
--- a/gcc/testsuite/gcc.target/i386/l_fma_float_6.c
+++ b/gcc/testsuite/gcc.target/i386/l_fma_float_6.c
@@ -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"



More information about the Gcc-patches mailing list