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: [patch] h8300.md: Optimize one case of zero_extract.


On Mon, 3 Mar 2003, Kazu Hirata wrote:
> +  "*
> +{
> +  if (REG_P (operands[0]) && REG_P (operands[1])
> +      && REGNO (operands[0]) != REGNO (operands[1]))
> +    return \"sub.l\\t%S0,%S0\;mov.b\\t%x1,%w0\";
> +  else
> +    return \"mov.b\\t%x1,%w0\;extu.w\\t%f0\;extu.l\\t%S0\";
> +}"
>    [(set_attr "cc" "set_znv")
>     (set_attr "length" "6")])

I think you need to tweak the length too, right?
(Sorry for the nits.)

brgds, H-P


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