[Bug target/64507] SH inlined builtin strncmp doesn't return 0 for 0 length

2015-01-07 Thread chrbr at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64507 --- Comment #4 from chrbr at gcc dot gnu.org --- Actually, the code could be slightly better by factorizing the return sequences ;; check length mov#0,r0 ;; goto .l2 ;; else init r1,r0 ;; goto .l1 .l2:

[Bug target/64507] SH inlined builtin strncmp doesn't return 0 for 0 length

2015-01-06 Thread chrbr at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64507 chrbr at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--

[Bug target/64507] SH inlined builtin strncmp doesn't return 0 for 0 length

2015-01-06 Thread chrbr at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64507 --- Comment #2 from chrbr at gcc dot gnu.org --- Author: chrbr Date: Tue Jan 6 12:22:51 2015 New Revision: 219258 URL: https://gcc.gnu.org/viewcvs?rev=219258&root=gcc&view=rev Log: PR target/64507 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check

[Bug target/64507] SH inlined builtin strncmp doesn't return 0 for 0 length

2015-01-06 Thread chrbr at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64507 --- Comment #1 from chrbr at gcc dot gnu.org --- Author: chrbr Date: Tue Jan 6 11:59:09 2015 New Revision: 219257 URL: https://gcc.gnu.org/viewcvs?rev=219257&root=gcc&view=rev Log: PR target/64507 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check