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: [testsuite] Tweak gcc.dg/vect/vect-peel-3.c


On Mon, Nov 22, 2010 at 1:22 PM, Eric Botcazou <ebotcazou@adacore.com> wrote:
> Hi,
>
> gcc.dg/vect/vect-peel-3.c almost passes on the SPARC, but one of the 2 loops
> isn't vectorized because there is an unsupported shift operation:
>
> ?for (i = 0; i < N+10; i++)
> ? ?{
> ? ? ?ib[i] = i;
> ? ? ?ic[i] = i+2;
> ? ? ?ia[i] = i/2;
> ? ?}
>
> so I suggest changing the '/' into a '-'. ?OK for mainline?

Hmm.  Can it do division?  If so please file a missed optimziation
bug instead (and XFAIL it on sparc instead).

Thanks,
Richard.

>
> 2010-11-22 ?Eric Botcazou ?<ebotcazou@adacore.com>
>
> ? ? ? ?PR testsuite/46230
> ? ? ? ?* gcc.dg/vect/vect-peel-3.c (RES): Adjust.
> ? ? ? ?(main): Use subtraction instead of division by 2.
>
>
> --
> Eric Botcazou
>


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