re PR target/52933 (SH Target: Use div0s for integer sign comparisons)
authorOleg Endo <olegendo@gcc.gnu.org>
Fri, 6 May 2016 09:52:35 +0000 (09:52 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Fri, 6 May 2016 09:52:35 +0000 (09:52 +0000)
commit765d7b5470cbf6e46d1982726e44c962d9c6516c
tree321e082db475892c24122dedc28a608744f1f8f8
parent29c94e65e1be846e8a71a3d24450c4cf1d1d5b41
re PR target/52933 (SH Target: Use div0s for integer sign comparisons)

gcc/
PR target/52933
* config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
* config/sh/sh.c (sh_rtx_costs): Add another div0s case.

gcc/testsuite/
PR target/52933
* gcc.target/sh/pr52933-1.c (test_31, test_32, test_33, test_34,
test_35, test_36, test_37, test_38, test_39, test_40): New sub-tests.
Adjust expected instruction counts.
* gcc.target/sh/pr52933-2.c: Adjust expected instruction counts.

From-SVN: r235952
gcc/ChangeLog
gcc/config/sh/sh.c
gcc/config/sh/sh.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/sh/pr52933-1.c
gcc/testsuite/gcc.target/sh/pr52933-2.c