[Bug target/52933] SH Target: Use div0s for integer sign comparisons

2012-04-11 Thread olegendo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52933 --- Comment #1 from Oleg Endo 2012-04-11 11:04:09 UTC --- Created attachment 27131 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27131 Before/After Examples

[Bug target/52933] SH Target: Use div0s for integer sign comparisons

2016-05-06 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52933 --- Comment #8 from Oleg Endo --- 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_

[Bug target/52933] SH Target: Use div0s for integer sign comparisons

2016-05-06 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52933 Oleg Endo changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/52933] SH Target: Use div0s for integer sign comparisons

2012-08-14 Thread olegendo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52933 --- Comment #2 from Oleg Endo 2012-08-14 17:59:11 UTC --- Author: olegendo Date: Tue Aug 14 17:59:03 2012 New Revision: 190396 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190396 Log: PR target/52933 * config/sh/sh.md (cmp_div0s

[Bug target/52933] SH Target: Use div0s for integer sign comparisons

2012-08-15 Thread olegendo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52933 Oleg Endo changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug target/52933] SH Target: Use div0s for integer sign comparisons

2013-05-06 Thread olegendo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52933 --- Comment #3 from Oleg Endo 2013-05-06 20:10:11 UTC --- http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=198646 PR target/52933 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add variations of these pattern

[Bug target/52933] SH Target: Use div0s for integer sign comparisons

2015-01-24 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52933 --- Comment #7 from Oleg Endo --- Author: olegendo Date: Sat Jan 24 13:04:53 2015 New Revision: 220081 URL: https://gcc.gnu.org/viewcvs?rev=220081&root=gcc&view=rev Log: gcc/ PR target/49263 PR target/53987 PR target/64345 PR tar

[Bug target/52933] SH Target: Use div0s for integer sign comparisons

2013-10-27 Thread olegendo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52933 --- Comment #4 from Oleg Endo --- The div0s insn can also be used to do floating point sign comparisons. For example: bool test3 (float x, float y) { return __builtin_signbitf (x) ^ __builtin_signbitf (y); } currently compiles to: fl

[Bug target/52933] SH Target: Use div0s for integer sign comparisons

2014-12-16 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52933 --- Comment #5 from Oleg Endo --- Some of the original test cases are still not working. In particular cases where bit positions != 31 are compared/xor'ed: bool cmp_signs_24 (int a, int b) { return (a & 0x8000) ^ (b & 0x8000); } bool cmp_sig

[Bug target/52933] SH Target: Use div0s for integer sign comparisons

2014-12-22 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52933 --- Comment #6 from Oleg Endo --- Author: olegendo Date: Mon Dec 22 16:19:11 2014 New Revision: 219017 URL: https://gcc.gnu.org/viewcvs?rev=219017&root=gcc&view=rev Log: gcc/testsuite/ PR target/52933 * gcc.target/sh/sh/pr52933-3.c: New.