This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: MN10300: Replace cc0 with CC_REG


On 10/13/2010 08:18 AM, Nick Clifton wrote:
> You are right, they are not needed ... yet.  They are needed in a patch
> to come, but I have removed them for now.

Fine.

>> Are you planning to eliminate redundant compares via peepholes?
> 
> Eventually yes, but not until a few more patches have gone in.

Sure.

> +(define_insn "float_conditional_branch"
>    [(set (pc)
> +	(if_then_else (match_operator 0 "comparison_operator" [(reg:CC_FLOAT CC_REG) (const_int 0)])
> +		      (label_ref (match_operand 1 "" ""))
...
> +  emit_jump_insn (gen_float_conditional_branch (gen_rtx_fmt_ee (GET_CODE (operands[3]),
> +  		 			       		       CCmode,
> + 		 		 	       		       gen_rtx_REG (CCmode, CC_REG),
> +							       const0_rtx),
> +						operands[2]));

Looks like you've got the wrong mode there during creation.

Otherwise it looks ok.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]