sh-mem.cc (sh_expand_cmpnstr): New function.
authorChristian Bruel <christian.bruel@st.com>
Wed, 30 Oct 2013 12:35:27 +0000 (13:35 +0100)
committerChristian Bruel <chrbr@gcc.gnu.org>
Wed, 30 Oct 2013 12:35:27 +0000 (13:35 +0100)
commitca494b8d783b3a0d6e259789ccd09714adaf3d46
tree1cea31039fe84e59f896ec41ec6541d0a8e982ac
parenteb1474c1a25d8fe785d0bec71df099496a6e49b0
sh-mem.cc (sh_expand_cmpnstr): New function.

2013-10-30  Christian Bruel  <christian.bruel@st.com>

* gcc/config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
(sh_expand_cmpstr): Handle known align and schedule improvements.
* gcc/config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
* gcc/config/sh/sh.md (cmpstrnsi): New pattern.

From-SVN: r204206
gcc/ChangeLog
gcc/config/sh/sh-mem.cc
gcc/config/sh/sh-protos.h
gcc/config/sh/sh.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/builtins/strncmp-2.c
gcc/testsuite/gcc.target/sh/cmpstr.c [new file with mode: 0644]
gcc/testsuite/gcc.target/sh/cmpstrn.c [new file with mode: 0644]