This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] (4.1 stage 2 projects): vectorize reduction, part 3/n


On Tue, Jul 05, 2005 at 09:33:40AM +0200, Paolo Bonzini wrote:
> uminv8hi:
>        movdqa  a, t1
>        movdqa  t1, t2
>        psubusw b, t2   /* t2 = b[n] >= a[n] ? 0 : a[n] - b[n] */
>        psubw   t1, t2     /* t1 = b[n] >= a[n] ? a[n] : b[n] */

You had to have meant paddw here, which computes max, not min.
And is in fact what I'm using now.

This computes (b[n] >= a[n] ? -a[n] : -b[n]); not exactly what
we were after.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]