• bonzini's avatar
    gcc: · a0d5cf71
    bonzini authored
    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
    a0d5cf71
ChangeLog 541 KB