http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55303
--- Comment #3 from Oleg Endo <olegendo at gcc dot gnu.org> 2013-05-06 05:48:18 UTC --- (In reply to comment #1) > I will modify the attached patch so that it will allow only the HW clip > constants for now. This has been committed as rev 198617: http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=198617 PR target/55303 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases. * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and related expanders. * config/sh/iterators.md (SMIN_SMAX): New code iterator. * config/sh/predicates.md (arith_reg_or_0_or_1_operand, clips_min_const_int, clips_max_const_int, clipu_max_const_int): New predicates. PR target/55303 * gcc.target/sh/pr55303-1.c: New. * gcc.target/sh/pr55303-2.c: New. * gcc.target/sh/pr55303-3.c: New.