PR target/55303
commita61eea5a11c681a3625b25af7757d6b75a0c71bb
authorolegendo <olegendo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 May 2013 00:16:55 +0000 (6 00:16 +0000)
committerolegendo <olegendo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 May 2013 00:16:55 +0000 (6 00:16 +0000)
treee9abc6e1a00878a0e359e237b7b39316b2a8f7dc
parentfa46908abf15379e691823ebc0ca7bf3f91acd66
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198617 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/sh/iterators.md
gcc/config/sh/predicates.md
gcc/config/sh/sh.c
gcc/config/sh/sh.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/sh/pr55303-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/sh/pr55303-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/sh/pr55303-3.c [new file with mode: 0644]