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]

[committed] [testsuite] obvious testcase fix - vect-iv-4.c


vect-iv-4.c has been XPASSing in the last few weeks, I think since Zdenek's
patch for preserving loops in threading. Before that the loop got peeled
once before the vectorizer, which made the memory accesses in the loop
unaligned. Now, the loop is not being peeled anymore before the vectorizer,
the memory-accesses are aligned, and vectorization is successful. Tested on
i386-linux and powerpc-linux, Committed as obvious.

Dorit

        * gcc.dg/vect/vect-iv-4.c: Test now passes on vect_pack_trunc
        targets.

Index: gcc.dg/vect/vect-iv-4.c
===================================================================
*** gcc.dg/vect/vect-iv-4.c     (revision 126053)
--- gcc.dg/vect/vect-iv-4.c     (working copy)
*************** int main (void)
*** 40,44 ****
    return main1 ();
  }

! /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" {
xfail *-*-* } } } */
  /* { dg-final { cleanup-tree-dump "vect" } } */
--- 40,44 ----
    return main1 ();
  }

! /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" {
target vect_pack_trunc } } } */
  /* { dg-final { cleanup-tree-dump "vect" } } */


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