This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, match] Fix pr68714
- From: Richard Biener <rguenther at suse dot de>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: Richard Henderson <rth at redhat dot com>, gcc-patches at gcc dot gnu dot org, Jakub Jelinek <jakub at redhat dot com>
- Date: Tue, 15 Mar 2016 11:45:00 +0100 (CET)
- Subject: Re: [PATCH, match] Fix pr68714
- Authentication-results: sourceware.org; auth=none
- References: <56D5F4AC dot 9030504 at redhat dot com> <alpine dot LSU dot 2 dot 11 dot 1603020959000 dot 31547 at t29 dot fhfr dot qr> <56E3777D dot 2080604 at redhat dot com> <mvmd1qwhz1k dot fsf at hawking dot suse dot de>
On Tue, 15 Mar 2016, Andreas Schwab wrote:
> Richard Henderson <rth@redhat.com> writes:
>
> > diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr68714.c b/gcc/testsuite/gcc.dg/tree-ssa/pr68714.c
> > new file mode 100644
> > index 0000000..741d311
> > --- /dev/null
> > +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr68714.c
> > @@ -0,0 +1,9 @@
> > +/* { dg-do compile } */
> > +/* { dg-options "-O2 -fdump-tree-optimized" } */
> > +
> > +typedef int vec __attribute__((vector_size(16)));
> > +vec f(vec x,vec y){
> > + return x<y|x==y;
> > +}
> > +
> > +/* { dg-final { scan-tree-dump-times " <= " 1 "optimized" } } */
>
> That fails on ia64:
>
> $ grep " <= " pr68714.c.211t.optimized
> _10 = _8 <= _9 ? -1 : 0;
> _13 = _11 <= _12 ? -1 : 0;
> _16 = _14 <= _15 ? -1 : 0;
Probably on all targets that don't support V4SImode vectors. Though
three cond_exprs is odd ;) I suppose we got one DImode and two SImode
but that would be odd behavior from veclower...
Richard.