public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "H.J. Lu" <hjl.tools@gmail.com>
To: Kirill Yukhin <kirill.yukhin@gmail.com>
Cc: Uros Bizjak <ubizjak@gmail.com>,
	gcc-patches List <gcc-patches@gcc.gnu.org>,
	vbyakovl23@gmail.com
Subject: Re: [PATCH, testsuite, i386] FMA3 testcases + typo fix in MD
Date: Wed, 12 Oct 2011 18:12:00 -0000	[thread overview]
Message-ID: <CAMe9rOpwy50s8wQPTKPS0aWm8aYgnAjLHTt=5LD39sHRtEUSpA@mail.gmail.com> (raw)
In-Reply-To: <CAMe9rOrHozSXbow+GLObBJ5CQxfVrmL-sJHxgbu03WWQQBtRmw@mail.gmail.com>

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"

  reply	other threads:[~2011-10-12 17:44 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-05 11:16 Kirill Yukhin
2011-10-05 18:51 ` Uros Bizjak
2011-10-06  9:48   ` Kirill Yukhin
2011-10-06 10:14     ` Uros Bizjak
2011-10-06 12:58       ` Kirill Yukhin
2011-10-06 13:04         ` Uros Bizjak
2011-10-06 13:05           ` Uros Bizjak
2011-10-06 13:49             ` Kirill Yukhin
2011-10-06 20:17               ` Uros Bizjak
2011-10-09 19:56                 ` Kirill Yukhin
2011-10-10 16:20                   ` H.J. Lu
2011-10-10 16:23                     ` Kirill Yukhin
2011-10-10 21:14               ` Uros Bizjak
2011-10-10 21:18                 ` Uros Bizjak
2011-10-11 10:38                   ` Kirill Yukhin
2011-10-11 10:53                     ` Uros Bizjak
2011-10-11 10:59                       ` Kirill Yukhin
2011-10-11 16:12                     ` H.J. Lu
2011-10-12 18:12                       ` H.J. Lu [this message]
2011-10-06 13:07           ` Kirill Yukhin
2011-10-15 10:42             ` Andreas Schwab
2011-10-15 10:45               ` Uros Bizjak
2011-10-15 14:45                 ` Uros Bizjak
2011-10-17 13:17                   ` Kirill Yukhin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMe9rOpwy50s8wQPTKPS0aWm8aYgnAjLHTt=5LD39sHRtEUSpA@mail.gmail.com' \
    --to=hjl.tools@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=kirill.yukhin@gmail.com \
    --cc=ubizjak@gmail.com \
    --cc=vbyakovl23@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).