This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH/RFA] SH: Rename ashlhi3 insn
- From: Joern RENNECKE <joern dot rennecke at st dot com>
- To: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- Cc: gcc-patches at gcc dot gnu dot org, aoliva at redhat dot com
- Date: Mon, 21 Mar 2005 11:05:30 +0000
- Subject: Re: [PATCH/RFA] SH: Rename ashlhi3 insn
- References: <20050320.201939.77065919.kkojima@rr.iij4u.or.jp>
Kaz Kojima wrote:
2005-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
* config/sh/sh.md (ashlhi3): Rename to ashlhi3_n.
No, without the ashlhi3 pattern, the insn will hardly be useed at all.
I suggest to rename the
insn to suppress the gen_* function generation (i.e. "*ashlhi3_n"), and
add an ashlhi3
expander, which FAILS if operand 2 or 0 don't match, and uses
copy_to_mode_reg if
operand 1 doesn't match.