This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: More vector folding
- From: Marc Glisse <marc dot glisse at inria dot fr>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Chung-Ju Wu <jasonwucj at gmail dot com>, Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>, richard dot guenther at gmail dot com, gcc patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 17 May 2013 16:37:45 +0200 (CEST)
- Subject: Re: More vector folding
- References: <201305171116 dot r4HBGSCY016953 at ignucius dot se dot axis dot com> <alpine dot DEB dot 2 dot 02 dot 1305171400460 dot 3923 at laptop-mg dot saclay dot inria dot fr> <CADj25HNotbDDcGPXaAO07zd-BP7cc=Dnq4+TuFEZVBinG8Udaw at mail dot gmail dot com> <20130517140833 dot GY1377 at tucnak dot redhat dot com> <alpine dot DEB dot 2 dot 02 dot 1305171616290 dot 3923 at laptop-mg dot saclay dot inria dot fr> <20130517143427 dot GA1377 at tucnak dot redhat dot com>
On Fri, 17 May 2013, Jakub Jelinek wrote:
On Fri, May 17, 2013 at 04:23:08PM +0200, Marc Glisse wrote:
2013-05-17 Marc Glisse <marc.glisse@inria.fr>
PR regression/57313
* gcc.dg/binop-xor3.c: Restrict to platforms known to work (x86).
I'd say it should be PR testsuite/57313 (and the PR changed to that).
Ok, thanks.
I was actually thinking that it might be better to put the target selector
on dg-final, as in the attached. Which do you prefer?
--
Marc Glisse
Index: gcc.dg/binop-xor3.c
===================================================================
--- gcc.dg/binop-xor3.c (revision 199006)
+++ gcc.dg/binop-xor3.c (working copy)
@@ -1,11 +1,11 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
int
foo (int a, int b)
{
return ((a && !b) || (!a && b));
}
-/* { dg-final { scan-tree-dump-times "\\\^" 1 "optimized" } } */
+/* { dg-final { scan-tree-dump-times "\\\^" 1 "optimized" { target i?86-*-* x86_64-*-* } } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */