This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [SH] PR 54089 - Reinstate T_REG clobber for left shifts
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: oleg dot endo at t-online dot de
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 10 Aug 2012 07:42:08 +0900 (JST)
- Subject: Re: [SH] PR 54089 - Reinstate T_REG clobber for left shifts
- References: <1344530660.2193.64.camel@yam-132-YW-E178-FTW>
Oleg Endo <oleg.endo@t-online.de> wrote:
> Removing the T_REG clobber from the left shift patterns entirely wasn't
> such a good idea. Especially if dynamic shifts are not available
> (anything < SH3) incorrect code may be generated.
> The attached patch adds a T_REG clobbering version of the left shift
> insn "ashlsi3_n". While at it, I consolidated the description of the
> constant shift sequences, which hopefully makes them easier to read and
> understand.
>
> Tested on rev 190151 with
> make -k check RUNTESTFLAGS="--target_board=sh-sim
> \{-m2/-ml,-m2/-mb,-m2a/-mb,-m4/-ml,-m4/-mb,-m4a/-ml,-m4a/-mb}"
>
> and no new failures.
> OK?
OK.
Regards,
kaz