[SH] Backport fix of PR 53988 to 4.9/4.8

Oleg Endo oleg.endo@t-online.de
Sun Mar 8 18:07:00 GMT 2015


Hi,

Backporting of the fix went into GCC 5 seems to intrusive for the
released branches.  Hence I'd propose to remove the problematic patterns
altogether, as they can silently generate wrong code.  The attached
patch does that.  Tested briefly with 'make all' and 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}"

Kaz, do you have any objections?

Cheers,
Oleg

gcc/ChangeLog:
	PR target/53988
	* config/sh/sh.md (*tst<mode>_t_zero): Remove insns.

gcc/testsuite/ChangeLog:
	PR target/53988
	* gcc.target/sh/pr53988.c: Mark tests as xfail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sh_pr53988_3_49.patch
Type: text/x-patch
Size: 2052 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150308/6540c098/attachment.bin>


More information about the Gcc-patches mailing list