[Bug target/60884] [SH] improve inlined strlen-like builtin functions

2015-01-17 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60884 --- Comment #5 from Oleg Endo --- The test case gcc.target/sh/memset.c: void test00(char *dstb) { __builtin_memset (dstb, 0, 15); } compiles to: mov r4,r0 tst #3,r0 mov #0,r1 bf/s.L5 mo

[Bug target/60884] [SH] improve inlined strlen-like builtin functions

2014-05-07 Thread olegendo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60884 --- Comment #4 from Oleg Endo --- Author: olegendo Date: Wed May 7 20:08:23 2014 New Revision: 210187 URL: http://gcc.gnu.org/viewcvs?rev=210187&root=gcc&view=rev Log: gcc/ PR target/60884 * config/sh/sh-mem.cc (sh_expand_strlen): Use lo

[Bug target/60884] [SH] improve inlined strlen-like builtin functions

2014-05-05 Thread chrbr at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60884 chrbr at gcc dot gnu.org changed: What|Removed |Added CC||chrbr at gcc dot gnu.org --- Co

[Bug target/60884] [SH] improve inlined strlen-like builtin functions

2014-05-04 Thread olegendo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60884 --- Comment #2 from Oleg Endo --- I was trying to see how to implement the strchr builtin function which could also utilize the cmp/str insn. However, it seems that the necessary builtin expansion code for strchr is not there (yet).

[Bug target/60884] [SH] improve inlined strlen-like builtin functions

2014-05-03 Thread olegendo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60884 Oleg Endo changed: What|Removed |Added CC||christian.bruel at st dot com --- Comment #1