[Bug target/54236] [SH] Improve addc and subc insn utilization

2018-11-19 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54236 --- Comment #20 from Oleg Endo --- Thanks for the reminder. The issue hasn't been fully resolved. Please leave this PR open. This will be helpful when getting back to the issue.

[Bug target/54236] [SH] Improve addc and subc insn utilization

2018-11-19 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54236 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment #19

[Bug target/54236] [SH] Improve addc and subc insn utilization

2015-10-01 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54236 --- Comment #18 from Oleg Endo --- Author: olegendo Date: Thu Oct 1 12:36:15 2015 New Revision: 228332 URL: https://gcc.gnu.org/viewcvs?rev=228332&root=gcc&view=rev Log: gcc/testsuite/ PR target/54236 * gcc.target/sh/pr54236-6.c

[Bug target/54236] [SH] Improve addc and subc insn utilization

2015-09-28 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54236 --- Comment #17 from Oleg Endo --- Author: olegendo Date: Mon Sep 28 14:00:44 2015 New Revision: 228202 URL: https://gcc.gnu.org/viewcvs?rev=228202&root=gcc&view=rev Log: gcc/ PR target/54236 * config/sh/predicates.md (t_reg_oper

[Bug target/54236] [SH] Improve addc and subc insn utilization

2015-07-18 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54236 --- Comment #16 from Oleg Endo --- Created attachment 36012 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36012&action=edit addsicc pattern (In reply to Oleg Endo from comment #9) > The following function compiled with -O2 > > unsigned i

[Bug target/54236] [SH] Improve addc and subc insn utilization

2015-07-18 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54236 --- Comment #15 from Oleg Endo --- The following shows missed subc cases when there are constants involved. Addc cases can be constructed in the same way. int fun (int x) { return x - 1 - (x > 100); } -O2 -m4: mov #100,r1

[Bug target/54236] [SH] Improve addc and subc insn utilization

2015-05-21 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54236 --- Comment #14 from Oleg Endo --- Author: olegendo Date: Thu May 21 12:36:35 2015 New Revision: 223479 URL: https://gcc.gnu.org/viewcvs?rev=223479&root=gcc&view=rev Log: gcc/ PR target/54236 * config/sh/sh.md (*round_int_even):

[Bug target/54236] [SH] Improve addc and subc insn utilization

2015-05-19 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54236 --- Comment #13 from Oleg Endo --- Author: olegendo Date: Tue May 19 08:00:41 2015 New Revision: 223346 URL: https://gcc.gnu.org/viewcvs?rev=223346&root=gcc&view=rev Log: gcc/ PR target/54236 * config/sh/sh.md (*round_int_even):

[Bug target/54236] [SH] Improve addc and subc insn utilization

2015-05-17 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54236 --- Comment #12 from Oleg Endo --- Author: olegendo Date: Sun May 17 21:01:29 2015 New Revision: 223274 URL: https://gcc.gnu.org/viewcvs?rev=223274&root=gcc&view=rev Log: gcc/ PR target/54236 * config/sh/sh.md (*addc_2r_t): Use a

[Bug target/54236] [SH] Improve addc and subc insn utilization

2015-01-25 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54236 --- Comment #11 from Oleg Endo --- Author: olegendo Date: Sun Jan 25 16:41:25 2015 New Revision: 220093 URL: https://gcc.gnu.org/viewcvs?rev=220093&root=gcc&view=rev Log: gcc/testsuite/ PR target/54236 * gcc.target/sh/pr54236-4.c: New.

[Bug target/54236] [SH] Improve addc and subc insn utilization

2015-01-24 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54236 --- Comment #10 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 ta

[Bug target/54236] [SH] Improve addc and subc insn utilization

2014-09-27 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54236 --- Comment #9 from Oleg Endo --- The following function compiled with -O2 unsigned int check (unsigned int x) { return x == 0 ? 1 : x; } results in: tst r4,r4 bt/s.L7 mov #1,r0 mov r4,r0 .L7:

[Bug target/54236] [SH] Improve addc and subc insn utilization

2014-05-21 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54236 --- Comment #8 from Oleg Endo --- Author: olegendo Date: Wed May 21 08:06:06 2014 New Revision: 210682 URL: http://gcc.gnu.org/viewcvs?rev=210682&root=gcc&view=rev Log: gcc/ PR target/54236 * config/sh/sh.md (*addc_r_1): Rename t

[Bug target/54236] [SH] Improve addc and subc insn utilization

2013-11-03 Thread olegendo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54236 --- Comment #7 from Oleg Endo --- (In reply to Oleg Endo from comment #6) > Created attachment 31144 [details] > stitching addc insns > > The attached patch is an example that shows how widening additions can be > stitched together. One applicat

[Bug target/54236] [SH] Improve addc and subc insn utilization

2013-11-03 Thread olegendo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54236 --- Comment #6 from Oleg Endo --- Created attachment 31144 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31144&action=edit stitching addc insns The attached patch is an example that shows how widening additions can be stitched together. On

[Bug target/54236] [SH] Improve addc and subc insn utilization

2013-11-02 Thread olegendo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54236 --- Comment #5 from Oleg Endo --- Created attachment 31141 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31141&action=edit widening unsigned addition The addc insn can also be used to implement widening 32 bit -> 64 bit unsigned addition, a

[Bug target/54236] [SH] Improve addc and subc insn utilization

2013-10-29 Thread olegendo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54236 --- Comment #4 from Oleg Endo --- Author: olegendo Date: Tue Oct 29 20:45:56 2013 New Revision: 204180 URL: http://gcc.gnu.org/viewcvs?rev=204180&root=gcc&view=rev Log: PR target/54236 * config/sh/sh.md (*addc): Rename existing variations

[Bug target/54236] [SH] Improve addc and subc insn utilization

2013-09-22 Thread olegendo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54236 --- Comment #3 from Oleg Endo --- Some more addc candidates I ran into: int test00 (int a, int b, int c, int d) { return (d & 1) + a + b; } -O2 -m4: mov r7,r0 and #1,r0 add r4,r0 rts add

[Bug target/54236] [SH] Improve addc and subc insn utilization

2012-09-19 Thread olegendo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54236 --- Comment #2 from Oleg Endo 2012-09-19 17:45:53 UTC --- Author: olegendo Date: Wed Sep 19 17:45:37 2012 New Revision: 191489 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191489 Log: PR target/54236 * config/sh/sh.m

[Bug target/54236] [SH] Improve addc and subc insn utilization

2012-08-16 Thread olegendo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54236 --- Comment #1 from Oleg Endo 2012-08-16 23:19:51 UTC --- Author: olegendo Date: Thu Aug 16 23:19:45 2012 New Revision: 190459 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190459 Log: PR target/54236 * config/sh/sh.md (addc): Ad

[Bug target/54236] [SH] Improve addc and subc insn utilization

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