]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR target/55303 ([SH] Add support for clips / clipu instructions)
authorOleg Endo <olegendo@gcc.gnu.org>
Mon, 6 May 2013 00:16:55 +0000 (00:16 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Mon, 6 May 2013 00:16:55 +0000 (00:16 +0000)
commit2353515dafac6c7999110c09568b3cd0ba779710
treee9abc6e1a00878a0e359e237b7b39316b2a8f7dc
parent459efabf0586f8fe5abcebef1837e2386a4326b0
re PR target/55303 ([SH] Add support for clips / clipu instructions)

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.

From-SVN: r198617
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]