Commit: V850: Add support for the E3V5 architecture variant

Nick Clifton
Thu Jan 31 18:45:00 GMT 2013

Hi Guys,

  I am applying the patch below to add support for the E3V5 architecture
  variant to the V850 backend.  This patch was originally developed by
  Renesas, but it is only recently that their copyright assignment was
  completed so that it could be contributed.

  I realize that the current mainline sources are only accepting
  regression fixes at the moment, but I asked for and received
  permission to apply the patch, with the caveat that:

    "if you break your arch we'll not wait for you to fix it ;)"

  The patch does actually fix a few problems with the other V850
  architecture variants, such that the gcc testsuite shows 31 fewer
  unexpected failures for each multilib.

  Support for the e3v5 architecture variant is already in the binutils
  and simulator sources.
  Tested with no regressions (and several improvements) on a v850e-elf


2013-01-31  Hiroyuki Ono  <>
	    Nick Clifton  <>

	* config/v850/ (Q): Define as a memory constraint.
	* config/v850/ (label_ref_operand): New predicate.
	(e3v5_shift_operand): New predicate.
	(ior_operator): New predicate.
	* config/v850/t-v850: Add e3v5 multilib.
	* config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
	(v850_gen_movdi): Prototype.
	* config/v850/v850.c: Add support for e3v5 architecture.
	Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
	(construct_save_jarl): Add e3v5 long JARL support.
	(v850_adjust_insn_length): New function.  Adjust length of call
	insns when using e3v5 instructions.
	(v850_gen_movdi): New function: Generate instructions to move a
	DImode value.
	* config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
	(CPP_SPEC): Define __v850e3v5__ as appropriate.
	(TARGET_USE_FPU): Enable for e3v5.
	(CONST_OK_FOR_W): New macro.
	* config/v850/ (UNSPEC_LOOP): Define.
	(attr cpu): Add v850e3v5.
	Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
	(movdi): New pattern.
	(movdi_internal): New pattern.
	(cbranchsf4): Conditionalize on TARGET_USE_FPU.
	(cbranchdf4): Conditionalize on TARGET_USE_FPU.
	(cstoresf4): Likewise.
	(cstoredf4): Likewise.
	(insv): New pattern.
	(rotlso3_a): New pattern.
	(rotlsi3_b): New pattern
	(rotlsi3_v850e3v5): New pattern.
	(doloop_begin): New pattern.
	(fix_loop_counter): New pattern.
	(doloop_end): New pattern.
	(branch_normal): Add e3v5 long branch support.
	(branch_invert): Likewise.
	(branch_z_normal): Likewise.
	(branch_z_invert): Likewise.
	(branch_nz_normal): Likewise.
	(branch_nz_invert): Likewise.
	(call_internal_short): Add e3v5 register-indirect JARL support.
	(call_internal_long): Likewise.
	(call_value_internal_short): Likewise.
	(call_value_internal_long): Likewise.
	* config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
	(mloop): New option.
	* config.gcc: Add support for configuring v840e3v5 target.
	* doc/invoke.texi: Document new v850 specific command line

2013-01-31  Nick Clifton  <>

	* config/v850/lib1funcs.S: Add support for e3v5 architecture

-------------- next part --------------
A non-text attachment was scrubbed...
Name: v850e3v5.gcc.patch.xz
Type: application/x-xz
Size: 10072 bytes
Desc: not available
URL: <>

More information about the Gcc-patches mailing list