This is the mail archive of the 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, towards avoiding
the "alignment of array elements is greater than element size" warning that
Steve's patch is going to issue (

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:

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

ok to commit?


:ADDPATCH  tests (vectorizer):

        * gcc.dg/vect/pr16105.c: Replace "aligned types" with regular
        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
        Will not be vectorizable on vect_no_align targets once aliasing
        are resolved.
        * gcc.dg/vect/vect-79.c: Likewise.

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


(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]