Christian Bruel <christian.br...@st.com> 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 handle former case. > > OK for trunk ?
A few minor formatting nits. > * gcc/config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and Remove gcc/ from path. > + emit_move_insn (s2_addr, plus_constant (Pmode, s2_addr, > GET_MODE_SIZE (SImode))); Some lines exceed 80 columns. OK with those changes. Regards, kaz