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]

[patch, testsuite] Fix ppc and spu vectorization tests


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)

Attachment: tests.txt
Description: Text document


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