[patch, testsuite] Fix ppc and spu vectorization tests

Ira Rosen IRAR@il.ibm.com
Sun Jul 4 12:34:00 GMT 2010


Hi,

This patch removes two vectorization cost model tests for ppc: the loops
are either unrolled or the vectorization is always profitable with bigger
loop bounds.
It also increases loop bounds in two other cost model tests.

In pr35821-altivec.c the loop is optimized out. I can't change the code in
such way that the loop is not optimized out and there is an ICE without the
patch for pr35821. So, I suggest to remove this testcase, and pr35821-spu.c
as well.

Tested on powerpc64-suse-linux.
OK for trunk?

Thanks,
Ira

testsuite/ChangeLog:

      * gcc.dg/vect/costmodel/ppc/costmodel-vect-31d.c: Remove.
      * gcc.dg/vect/costmodel/ppc/costmodel-vect-76a.c: Increase loop
bound.
      * gcc.dg/vect/costmodel/ppc/costmodel-vect-76b.c: Likewise.
      * gcc.dg/vect/costmodel/ppc/costmodel-vect-68d.c: Remove.
      * gcc.dg/vect/pr35821-altivec.c, gcc.dg/vect/pr35821-spu.c: Likewise.

(See attached file: tests.txt)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tests.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100704/8a64f2e1/attachment.txt>


More information about the Gcc-patches mailing list