diff mbox

Use -mno-prefer-avx128 in two more tests

Message ID Pine.LNX.4.64.1404022007260.10430@digraph.polyomino.org.uk
State New
Headers show

Commit Message

Joseph Myers April 2, 2014, 8:09 p.m. UTC
Two of the tests I noted in
<http://gcc.gnu.org/ml/gcc-patches/2014-04/msg00036.html> did not get
fixed for --with-arch=bdver3 --with-cpu=bdver3 by adding
-mno-prefer-avx128 in fact also show failures for --with-arch=btver2
--with-tune=btver2, and in that case *are* fixed by adding
-mno-prefer-avx128.  Thus, while in those cases there may still be
other tuning issues as noted in
<http://gcc.gnu.org/ml/gcc-patches/2014-04/msg00052.html> (btver2
doesn't enable the flag in question) I think it *is* correct to use
-mno-prefer-avx128 for these two tests, and this patch adds it.

Tested x86_64-linux-gnu.  OK to commit?

2014-04-02  Joseph Myers  <joseph@codesourcery.cmo>

	* gcc.target/i386/avx2-vpand-3.c,
	gcc.target/i386/avx256-unaligned-load-2.c: Use -mno-prefer-avx128.

Comments

Uros Bizjak April 2, 2014, 8:12 p.m. UTC | #1
On Wed, Apr 2, 2014 at 10:09 PM, Joseph S. Myers
<joseph@codesourcery.com> wrote:

> Two of the tests I noted in
> <http://gcc.gnu.org/ml/gcc-patches/2014-04/msg00036.html> did not get
> fixed for --with-arch=bdver3 --with-cpu=bdver3 by adding
> -mno-prefer-avx128 in fact also show failures for --with-arch=btver2
> --with-tune=btver2, and in that case *are* fixed by adding
> -mno-prefer-avx128.  Thus, while in those cases there may still be
> other tuning issues as noted in
> <http://gcc.gnu.org/ml/gcc-patches/2014-04/msg00052.html> (btver2
> doesn't enable the flag in question) I think it *is* correct to use
> -mno-prefer-avx128 for these two tests, and this patch adds it.
>
> Tested x86_64-linux-gnu.  OK to commit?
>
> 2014-04-02  Joseph Myers  <joseph@codesourcery.cmo>
>
>         * gcc.target/i386/avx2-vpand-3.c,
>         gcc.target/i386/avx256-unaligned-load-2.c: Use -mno-prefer-avx128.

OK.

Thanks,
Uros.
diff mbox

Patch

Index: gcc/testsuite/gcc.target/i386/avx2-vpand-3.c
===================================================================
--- gcc/testsuite/gcc.target/i386/avx2-vpand-3.c	(revision 209023)
+++ gcc/testsuite/gcc.target/i386/avx2-vpand-3.c	(working copy)
@@ -1,5 +1,5 @@ 
 /* { dg-do run } */
-/* { dg-options "-mavx2 -O2 -ftree-vectorize -save-temps" } */
+/* { dg-options "-mavx2 -mno-prefer-avx128 -O2 -ftree-vectorize -save-temps" } */
 /* { dg-require-effective-target avx2 } */
 
 
Index: gcc/testsuite/gcc.target/i386/avx256-unaligned-load-2.c
===================================================================
--- gcc/testsuite/gcc.target/i386/avx256-unaligned-load-2.c	(revision 209023)
+++ gcc/testsuite/gcc.target/i386/avx256-unaligned-load-2.c	(working copy)
@@ -1,5 +1,5 @@ 
 /* { dg-do compile { target { ! ia32 } } } */
-/* { dg-options "-O3 -dp -mavx -mavx256-split-unaligned-load" } */
+/* { dg-options "-O3 -dp -mavx -mavx256-split-unaligned-load -mno-prefer-avx128" } */
 
 void
 avx_test (char **cp, char **ep)