[SH, committed] Fix some failing PR 51244 tests

Oleg Endo oleg.endo@t-online.de
Fri May 16 22:58:00 GMT 2014


Hi,

Since recently, some of the PR 51244 tests started to fail.  The
attached patch fixes that.

Tested on rev 210305 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.
Committed as rev 210535.

Cheers,
Oleg

gcc/ChangeLog:
	PR target/51244
	* config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
	negt_reg_operand cases.
	* config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
	predicate.
	* config/sh/predicates.md (cbranch_treg_value): Simplify.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sh_pr51244-11_fix_cset_zero_pattern.patch
Type: text/x-patch
Size: 2165 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140516/5ba0df0c/attachment.bin>


More information about the Gcc-patches mailing list