[PATCH] New function for checking misalignment

Revital1 Eres ERES@il.ibm.com
Tue Sep 15 07:34:00 GMT 2009


Hello,

Following the RFC message:
http://gcc.gnu.org/ml/gcc-patches/2009-09/msg00129.html;
attached is the patch for adding a new target hook function
for checking misalignment.
The patch was tested on Power7 and x86.

OK for mainline?

Thanks,
Revital

        * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
        * targhooks.c (default_builtin_support_vector_misalignment):
        New builtin function.
        * targhooks.h (default_builtin_support_vector_misalignment):
        Declare.
        * target.h (builtin_support_vector_misalignment):
        New field in struct gcc_target.
        * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
        new builtin function.
        * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
        Define.
        * config/rs6000/rs6000.c
        (rs6000_builtin_support_vector_misalignment): New function.
        (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.


(See attached file: misalign_15_9.txt)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: misalign_15_9.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090915/7c836c44/attachment.txt>


More information about the Gcc-patches mailing list