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]

[testsuite] [patch] array alignment fix - part 2/3





This patch addresses the second set of vectorizer testcases (item 'b' from
http://gcc.gnu.org/ml/gcc-patches/2005-04/msg02874.html), towards avoiding
the "alignment of array elements is greater than element size" warning that
Steve's patch is going to issue (
http://gcc.gnu.org/ml/gcc-patches/2005-04/msg02284.html):

"
b) tests that use "aligned pointers" which can easily be replaced by
regular pointers (i.e., the purpose of the test is not to check handling of
alignment). These are tests vect-[37,74,75,76,77,78,79,97].c and pr20122.c.
Replacing the "aligned pointers" with regular pointers in these tests is
not the ideal solution because in some cases this means that these tests
are no longer vectorizable on vect_no_align targets, and even for targets
that support alignment we'd rather have a minimal test that avoids
alignment handling when misalignment issues are irrelevant for the test.
However, the only alternative solution is to wait until attributes on array
parameters are implemented (as suggested here:
http://gcc.gnu.org/ml/gcc/2005-03/msg00803.html).
"

Tested with and without alignment support, on powerpc-darwin.

ok to commit?

thanks,
dorit

:ADDPATCH  tests (vectorizer):

Changelog:
        * gcc.dg/vect/pr16105.c: Replace "aligned types" with regular
types.
        No longer vectorizable on vect_no_align targets.
        * gcc.dg/vect/pr20122.c: Likewise.
        * gcc.dg/vect/vect-74.c: Likewise.
        * gcc.dg/vect/vect-75.c: Likewise.
        * gcc.dg/vect/vect-76.c: Likewise.

        * gcc.dg/vect/vect-37.c: Replace "aligned types" with regular
types.
        Will not be vectorizable on vect_no_align targets once aliasing
issues
        are resolved.
        * gcc.dg/vect/vect-79.c: Likewise.

        * gcc.dg/vect/vect-77.c: Replace "aligned types" with regular
types.
        * gcc.dg/vect/vect-78.c: Likewise.
        * gcc.dg/vect/vect-97.c: Likewise.

Patch:

(See attached file: tests_alignment_patch2)

Attachment: tests_alignment_patch2
Description: Binary data


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