OSDN Git Service

gcc:
authorbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Apr 2005 09:12:05 +0000 (09:12 +0000)
committerbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Apr 2005 09:12:05 +0000 (09:12 +0000)
commita0d5cf71be5e2fba5ab4418deb60d2ccf6363872
treee30fc63fb8514b4f3b004d75368766b03aee6866
parentc5c17bcafb0278f31d2b183e630a8db6fa8a5ad9
gcc:
2004-04-27  Paolo Bonzini  <bonzini@gnu.org>

* tree-complex.c (expand_vector_operation): New, extracted from
expand_vector_operations_1.
(tree_vec_extract): Build a NOP_EXPR.
(expand_vec_parallel): Do not care about returning the correct type.
(expand_vector_operations_1): Call expand_vector_operation.
Build the VIEW_CONVERT_EXPR on the left side of MODIFY_EXPRs.

* tree-complex.c (gate_expand_vector_operations): New.
(pass_lower_vector_ssa): Use it.
* tree-optimize.c (init_tree_optimization_passes): Include
pass_lower_vector_ssa.
* tree-vect-transform.c (vect_min_worthwhile_factor): New.
(vectorizable_operation): Use it.
* tree-vectorizer.c (get_vectype_for_scalar_type): Accept
integer modes for the vector type.

* defaults.h (UNITS_PER_SIMD_WORD): Default to UNITS_PER_WORD.
* tree-vect-analyze.c (vect_enhance_data_refs_alignment):
Do not cope with UNITS_PER_SIMD_WORD == 0.
* tree-vectorizer.c (get_vectype_for_scalar_type): Check
if the scalar type is not bigger than UNITS_PER_SIMD_WORD.
(vectorize_loops): Do not check that UNITS_PER_SIMD_WORD > 0.
* config/i386/i386.h (UNITS_PER_SIMD_WORD): Default to UNITS_PER_WORD.
* config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
* config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
* config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.

* config/alpha/alpha.h (UNITS_PER_SIMD_WORD): Remove.
* config/bfin/bfin.h (UNITS_PER_SIMD_WORD): Remove.
* config/ia64/ia64.h (UNITS_PER_SIMD_WORD): Remove.

* doc/tm.texi (UNITS_PER_WORD): Rephrase more accurately.
(UNITS_PER_SIMD_WORD): New.

gcc/testsuite:
2004-04-27  Paolo Bonzini  <bonzini@gnu.org>

        * gcc.dg/tree-ssa/gen-vect-11.c, gcc.dg/tree-ssa/gen-vect-11a.c,
        gcc.dg/tree-ssa/gen-vect-11b.c, gcc.dg/tree-ssa/gen-vect-11c.c,
        gcc.dg/tree-ssa/gen-vect-2.c, gcc.dg/tree-ssa/gen-vect-25.c,
        gcc.dg/tree-ssa/gen-vect-26.c, gcc.dg/tree-ssa/gen-vect-28.c,
        gcc.dg/tree-ssa/gen-vect-32.c: New.
        * gcc.dg/vect/vect-82.c, gcc.dg/vect/vect-83.c: Fix dg-final.
        * gcc.dg/vect/vect-82_64.c, gcc.dg/vect/vect-83_64.c: Remove xfail,
        don't run on PPC32.

CVS: Enter Log.  Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS:  tree-complex.c tree-optimize.c tree-vect-analyze.c defaults.h
CVS:  tree-vect-transform.c tree-vectorizer.c ChangeLog
CVS:  testsuite/ChangeLog config/alpha/alpha.h config/bfin/bfin.h
CVS:  config/i386/i386.h config/ia64/ia64.h config/mips/mips.h
CVS:  config/rs6000/rs6000.h
CVS:  config/sparc/sparc.h doc/tm.texi
CVS:  testsuite/gcc.dg/vect/vect-82.c
CVS:  testsuite/gcc.dg/vect/vect-82_64.c
CVS:  testsuite/gcc.dg/vect/vect-83.c
CVS:  testsuite/gcc.dg/vect/vect-83_64.c
CVS: Added Files:
CVS:  testsuite/gcc.dg/tree-ssa/gen-vect-11.c
CVS:  testsuite/gcc.dg/tree-ssa/gen-vect-11a.c
CVS:  testsuite/gcc.dg/tree-ssa/gen-vect-11b.c
CVS:  testsuite/gcc.dg/tree-ssa/gen-vect-11c.c
CVS:  testsuite/gcc.dg/tree-ssa/gen-vect-2.c
CVS:  testsuite/gcc.dg/tree-ssa/gen-vect-25.c
CVS:  testsuite/gcc.dg/tree-ssa/gen-vect-26.c
CVS:  testsuite/gcc.dg/tree-ssa/gen-vect-28.c
CVS:  testsuite/gcc.dg/tree-ssa/gen-vect-32.c
CVS: ----------------------------------------------------------------------

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98818 138bc75d-0d04-0410-961f-82ee72b054a4
29 files changed:
gcc/ChangeLog
gcc/config/alpha/alpha.h
gcc/config/bfin/bfin.h
gcc/config/i386/i386.h
gcc/config/ia64/ia64.h
gcc/config/mips/mips.h
gcc/config/rs6000/rs6000.h
gcc/config/sparc/sparc.h
gcc/defaults.h
gcc/doc/tm.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11a.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11b.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11c.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/gen-vect-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/gen-vect-25.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/gen-vect-26.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/gen-vect-28.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/gen-vect-32.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/vect-82.c
gcc/testsuite/gcc.dg/vect/vect-82_64.c
gcc/testsuite/gcc.dg/vect/vect-83.c
gcc/testsuite/gcc.dg/vect/vect-83_64.c
gcc/tree-complex.c
gcc/tree-optimize.c
gcc/tree-vect-analyze.c
gcc/tree-vect-transform.c
gcc/tree-vectorizer.c