tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be a pointer.
authorIra Rosen <ira.rosen@linaro.org>
Tue, 7 Jun 2011 06:51:24 +0000 (06:51 +0000)
committerIra Rosen <irar@gcc.gnu.org>
Tue, 7 Jun 2011 06:51:24 +0000 (06:51 +0000)
commit383d9c83756ed27807c0a8e5864ff542e3561905
treed44318b140c4de62e09469dc53c5ff1df072e042
parentf527cc50e36411b205e37b7227bde8a9e7c6a0f9
tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be a pointer.

        * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to
        be a pointer.
        * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
        vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
        vect_recog_pow_pattern): Likewise.
        (vect_pattern_recog_1): Remove declaration.
        (widened_name_p): Remove declaration.  Add new argument to
        specify whether to check that both types are either signed or
        unsigned.
        (vect_recog_widen_mult_pattern): Update documentation.  Handle
        unsigned patterns and multiplication by constants.
        (vect_pattern_recog_1): Update vect_recog_func references.  Use
        statement information from the statement returned from pattern
        detection functions.
        (vect_pattern_recog): Update vect_recog_func reference.
        * tree-vect-stmts.c (vectorizable_type_promotion): For widening
        multiplication by a constant use the type of the other operand.

From-SVN: r174735
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/vect-widen-mult-const-s16.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/vect-widen-mult-const-u16.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/vect-widen-mult-u16.c
gcc/testsuite/gcc.dg/vect/vect-widen-mult-u8.c
gcc/testsuite/lib/target-supports.exp
gcc/tree-vect-patterns.c
gcc/tree-vect-stmts.c
gcc/tree-vectorizer.h