This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] h8300.md: Optimize one case of zero_extract.
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: Kazu Hirata <kazu at cs dot umass dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 3 Mar 2003 08:30:43 -0500 (EST)
- Subject: 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