Commit 27f8e5a9 by H.J. Lu Committed by H.J. Lu

Add -mtune=generic to 256bit AVX tests.

2010-10-14  H.J. Lu  <hongjiu.lu@intel.com>

	* gcc.target/i386/avx-copysign-vec.c: Add -mtune=generic.
	* gcc.target/i386/avx-copysignf-vec.c: Likewise.
	* gcc.target/i386/pr44130.c: Likewise.
	* gcc.target/i386/pr44144.c: Likewise.
	* gcc.target/i386/pr44180.c: Likewise.
	* gcc.target/i386/recip-vec-divf-avx.c: Likewise.
	* gcc.target/i386/recip-vec-sqrtf-avx.c: Likewise.
	* gcc.target/i386/vect-sizes-1.c: Likewise.
	* gcc.target/i386/vectorize4-avx.c: Likewise.

From-SVN: r165466
parent 82971de5
2010-10-14 H.J. Lu <hongjiu.lu@intel.com>
* gcc.target/i386/avx-copysign-vec.c: Add -mtune=generic.
* gcc.target/i386/avx-copysignf-vec.c: Likewise.
* gcc.target/i386/pr44130.c: Likewise.
* gcc.target/i386/pr44144.c: Likewise.
* gcc.target/i386/pr44180.c: Likewise.
* gcc.target/i386/recip-vec-divf-avx.c: Likewise.
* gcc.target/i386/recip-vec-sqrtf-avx.c: Likewise.
* gcc.target/i386/vect-sizes-1.c: Likewise.
* gcc.target/i386/vectorize4-avx.c: Likewise.
2010-10-14 Richard Guenther <rguenther@suse.de>
PR lto/44561
......
/* { dg-do run } */
/* { dg-require-effective-target avx } */
/* { dg-options "-O2 -ftree-vectorize -mavx" } */
/* { dg-options "-O2 -ftree-vectorize -mavx -mtune=generic" } */
#include "avx-check.h"
......
/* { dg-do run } */
/* { dg-require-effective-target avx } */
/* { dg-options "-O2 -ftree-vectorize -mavx" } */
/* { dg-options "-O2 -ftree-vectorize -mavx -mtune=generic" } */
#include "avx-check.h"
......
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-vectorize -mavx" } */
/* { dg-options "-O2 -ftree-vectorize -mavx -mtune=generic" } */
/* { dg-final { scan-assembler "and\[lq\]?\[\\t \]*\\$-32,\[\\t \]*%\[re\]?sp" } } */
/* { dg-final { scan-assembler "vmovaps\[\\t \]*%ymm" } } */
......
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-vectorize -mavx" } */
/* { dg-options "-O2 -ftree-vectorize -mavx -mtune=generic" } */
void
foo (char * dest, int xcount, int ycount)
......
/* { dg-do run } */
/* { dg-require-effective-target avx } */
/* { dg-options "-O2 -ftree-vectorize -mavx" } */
/* { dg-options "-O2 -ftree-vectorize -mavx -mtune=generic" } */
#include "avx-check.h"
......
/* { dg-do compile } */
/* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx -mfpmath=sse -mrecip" } */
/* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx -mtune=generic -mfpmath=sse -mrecip" } */
float a[16];
float b[16];
......
/* { dg-do compile } */
/* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx -mfpmath=sse -mrecip" } */
/* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx -mtune=generic -mfpmath=sse -mrecip" } */
float a[16];
float b[16];
......
/* { dg-do compile } */
/* { dg-options "-O3 -ffast-math -mavx" } */
/* { dg-options "-O3 -ffast-math -mavx -mtune=generic" } */
double a[1024];
......
/* { dg-do compile } */
/* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */
/* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx -mtune=generic" } */
extern double sqrt (double __x);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment