[Bug target/52933] SH Target: Use div0s for integer sign comparisons
olegendo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri May 6 09:53:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52933
--- Comment #8 from Oleg Endo <olegendo at gcc dot gnu.org> ---
Author: olegendo
Date: Fri May 6 09:52:35 2016
New Revision: 235952
URL: https://gcc.gnu.org/viewcvs?rev=235952&root=gcc&view=rev
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/sh/sh.c
trunk/gcc/config/sh/sh.md
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.target/sh/pr52933-1.c
trunk/gcc/testsuite/gcc.target/sh/pr52933-2.c
More information about the Gcc-bugs
mailing list