From: H.J. Lu Date: Wed, 12 Oct 2011 17:39:11 +0000 (+0000) Subject: Add -mfpmath=sse/-mtune=generic to FMA tests. X-Git-Tag: releases/gcc-4.7.0~3187 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a6fa37645370f2bbbee102afd270464259c4124;p=thirdparty%2Fgcc.git Add -mfpmath=sse/-mtune=generic to FMA tests. 2011-10-12 H.J. Lu * 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5af301f78237..11a3cc6b106e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,32 @@ +2011-10-12 H.J. Lu + + * 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 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 d46327d23ee2..79b219b874e4 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 14d325c3af40..ee1c50c432e8 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 f61f3bf76646..e55c41f6926b 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 36d89ed979f0..59128726bbaa 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 a43af769c032..701b606e8625 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 b72c87d13cb7..5e9756d7d75c 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 1ca34af62fe3..2c0766aa0a13 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 380fd3bd742f..701f32f65dc1 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 0b09056cd360..73e2a8d76268 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 e44a62cb92f0..860d361ad7f0 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 10c4f2beab1d..93a0c09d6132 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 95c44a1ca136..5004e2d756d8 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 81f6111f98e8..c5d5b6ac09a3 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 cb100f6b2bcf..cc52c75efbd4 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 3aa11399588a..0e26f2a15d4a 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 97b3a18244d9..0951330c1acd 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 743d5a738a29..ceb64902a2a0 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 4f433d5b4794..4360693dff5a 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 bc44d15b564a..b2cdbdc23092 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 8e4db8a324f1..9926e84cebad 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 397618a48f46..e365a261b0de 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 6ba667ae2c98..b0ae671ebcac 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 0f7b3aa39582..d574959b4729 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 f53f0c0c5769..7ab8dd3b3886 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"