This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] [testsuite] obvious testcase fix - vect-iv-4.c
- From: Dorit Nuzman <DORIT at il dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 28 Jun 2007 12:58:02 +0300
- Subject: [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" } } */