Add -mfpmath=sse/-mtune=generic to FMA tests.

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
This commit is contained in:
H.J. Lu 2011-10-12 17:39:11 +00:00 committed by H.J. Lu
parent c482a6511d
commit 0a6fa37645
25 changed files with 53 additions and 60 deletions

View 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

View 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. */

View 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. */

View 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. */

View 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. */

View 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. */

View 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. */

View 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. */

View 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. */

View 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. */

View 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. */

View 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. */

View 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. */

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"