[SH][committed] Fix gcc.target/sh/pr54236-1.c failures

Oleg Endo oleg.endo@t-online.de
Sun May 17 21:12:00 GMT 2015


Hi,

Since the recent changes in combine w.r.t. canonical forms of ashift and
mult outside mems, some of the SH patterns stopped working.  The
attached patch fixes the failures in gcc.target/sh/pr54236-1.c.

Tested briefly with
make -k check-gcc RUNTESTFLAGS="sh.exp --target_board=sh-sim
\{-m2/-ml,-m2/-mb,-m2a/-mb,-m4/-ml,-m4/-mb,-m4a/-ml,-m4a/-mb}"

Committed as r223274.

Cheers,
Oleg

gcc/ChangeLog:
	PR target/54236
	* config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sh_pr54236_7.patch
Type: text/x-patch
Size: 952 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150517/ae03880b/attachment.bin>


More information about the Gcc-patches mailing list