Re: [PATCH, SH] fix builtin_strncmp

2014-01-24 Thread kkojima
Christian Bruel wrote: > This patch fixes a bug of mine whereas more bytes than needed was read > when processing remaining bytes after an aligned word at at time loop. > This case was not caught neither by the gcc testsuite not the glibc > tests, Regression test included. > > no new regressions

Re: [PATCH, SH] Improve builtin strnlen for small lengths

2014-01-10 Thread kkojima
Christian Bruel wrote: > This patch unrolls string compare for length < 8 and residual bytes > after the word at a time loops (with cmp/str), using base+offset > addressing mode. > It also allows the builtin to be inlined for non-constant lengths. > > No new regressions. Upgraded test case to han