gcc/gcc/config/spu
Sa Liu 39aeae8573 config.gcc: Add options for arch and tune on SPU.
2007-07-13  Sa Liu  <saliu@de.ibm.com>

	* config.gcc: Add options for arch and tune on SPU.
	* config/spu/predicates.md: Add constant operands 0 and 1.
	* config/spu/spu-builtins.def: Add builtins for double precision 
	floating point comparison: si_dfceq, si_dfcmeq,	si_dfcgt, si_dfcmgt, 
	si_dftsv, spu_cmpeq_13, spu_cmpabseq_1, spu_cmpgt_13, spu_cmpabsgt_1,
	spu_testsv.
	* config/spu/spu-c.c: Define __SPU_EDP__ when builtins invoked with 
	a CELLEDP target.
	* config/spu/spu-protos.h: Add new function prototypes. 
	* config/spu/spu.c (spu_override_options): Check options -march and
	-mtune.
	(spu_comp_icode): Add comparison code for DFmode and vector mode.
	(spu_emit_branch_or_set): Use the new code for DFmode and vector 
	mode comparison.
	(spu_const_from_int): New.  Create a vector constant from 4 ints.
	(get_vec_cmp_insn): New.  Get insn index of vector compare instruction.
	(spu_emit_vector_compare): New.  Emit vector compare.
	(spu_emit_vector_cond_expr): New.  Emit vector conditional expression.
	* config/spu/spu.h: Add options -march and -mtune.  Define processor
	types PROCESSOR_CELL and PROCESSOR_CELLEDP.  Define macro
	CANONICALIZE_COMPARISON.
	* config/spu/spu.md: Add new insns for double precision compare
	and double precision vector compare.  Add vcond and smax/smin patterns
	to enable DFmode vector conditional expression.
	* config/spu/spu.opt: Add options -march and -mtune.
	* config/spu/spu_internals.h: Add builtins for CELLEDP target:
	si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt, si_dftsv.  Add builtin for
	both CELL and CELLEDP targets: spu_testsv.
	* config/spu/spu_intrinsics.h: Add flag mnemonics for test special 
	values.

testsuite/
	* gcc.dg/vect/fast-math-vect-reduc-7.c: Switch on test
	for V2DFmode vector conditional expression.
	* gcc.target/spu/dfcmeq.c: New.  Test combination of abs
	and dfceq patterns.
	* gcc.target/spu/dfcmgt.c: New.  Test combination of abs
	and dfcgt patterns.
	* gcc.target/spu/intrinsics-2.c: New.  Test intrinsics for
	V2DFmode comparison and test special values.
	* lib/target-supports.exp: Switch on test for V2DFmode 
	vector conditional expression.

From-SVN: r126626
2007-07-13 18:31:08 +00:00
..
constraints.md Change the defaults of some parameters and options. 2007-02-21 23:28:46 +00:00
float_unsdidf.c
float_unssidf.c
predicates.md config.gcc: Add options for arch and tune on SPU. 2007-07-13 18:31:08 +00:00
spu-builtins.def config.gcc: Add options for arch and tune on SPU. 2007-07-13 18:31:08 +00:00
spu-builtins.h
spu-builtins.md Change the defaults of some parameters and options. 2007-02-21 23:28:46 +00:00
spu-c.c config.gcc: Add options for arch and tune on SPU. 2007-07-13 18:31:08 +00:00
spu-elf.h spu-elf.h (STARTFILE_SPEC): Update. 2006-12-11 11:53:42 +11:00
spu-modes.def Change the defaults of some parameters and options. 2007-02-21 23:28:46 +00:00
spu-protos.h config.gcc: Add options for arch and tune on SPU. 2007-07-13 18:31:08 +00:00
spu.c config.gcc: Add options for arch and tune on SPU. 2007-07-13 18:31:08 +00:00
spu.h config.gcc: Add options for arch and tune on SPU. 2007-07-13 18:31:08 +00:00
spu.md config.gcc: Add options for arch and tune on SPU. 2007-07-13 18:31:08 +00:00
spu.opt config.gcc: Add options for arch and tune on SPU. 2007-07-13 18:31:08 +00:00
spu_internals.h config.gcc: Add options for arch and tune on SPU. 2007-07-13 18:31:08 +00:00
spu_intrinsics.h config.gcc: Add options for arch and tune on SPU. 2007-07-13 18:31:08 +00:00
spu_mfcio.h spu_intrinsics.h (SPU_RdEventStatMask): Rename to SPU_RdEventMask. 2006-11-23 12:58:15 +11:00
t-spu-elf spu-elf.h (STARTFILE_SPEC): Update. 2006-12-11 11:53:42 +11:00
vec_types.h
vmx2spu.h builtins.c, [...]: Fix comment typos. 2006-12-02 02:26:04 +00:00