This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Testsuite patch for gcc.dg/vect/no-vfa-vect-43.c on IA64
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: rguenther at suse dot de
- Date: Tue, 21 Apr 2009 09:56:26 -0700 (PDT)
- Subject: Testsuite patch for gcc.dg/vect/no-vfa-vect-43.c on IA64
- Reply-to: sje at cup dot hp dot com
The alias improvement branch, r145494, is causing a failure of
gcc.dg/vect/no-vfa-vect-43.c on IA64 HP-UX and Linux. Looking at the
test changes done with the alias improvement checkin, the number of
expected vectorized loops was increased from 1 to 2 for this test but
the number of loops that are versioned for alignment requirements was
left at 1 and should now be 2. This patch changes the number of expected
versionings to 2 and allows the test to pass on IA64 HP-UX and Linux.
It might look like we should only have to version the loop in main2 and
not the one in main1 because the input arrays in main1 have aligned
attributes on them. But the output array in main1 does not have an
alignment attribute and GCC doesn't seem to allow alignment attributes
on function arguments so there should be 2 versionings.
Tested on IA64 HP-UX and Linux, OK for checkin?
Steve Ellcey
sje@cup.hp.com
2009-04-21 Steve Ellcey <sje@cup.hp.com>
PR testsuite/39623
* gcc.dg/vect/no-vfa-vect-43.c Fix vect_no_align check.
Index: gcc.dg/vect/no-vfa-vect-43.c
===================================================================
--- gcc.dg/vect/no-vfa-vect-43.c (revision 146528)
+++ gcc.dg/vect/no-vfa-vect-43.c (working copy)
@@ -76,5 +76,5 @@ int main (void)
}
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" } } */
-/* { dg-final { scan-tree-dump-times "Alignment of access forced using versioning" 1 "vect" { target vect_no_align } } } */
+/* { dg-final { scan-tree-dump-times "Alignment of access forced using versioning" 2 "vect" { target vect_no_align } } } */
/* { dg-final { cleanup-tree-dump "vect" } } */