re PR target/67675 ([SH] Improve __builtin_strcmp alignment test)
authorOleg Endo <olegendo@gcc.gnu.org>
Fri, 25 Sep 2015 13:09:04 +0000 (13:09 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Fri, 25 Sep 2015 13:09:04 +0000 (13:09 +0000)
commitf700c7caef3feffdadcac957ac92f8c5d8470270
tree3c86b2d2f88c9494b6dd64f20b22561056c759e7
parente6cf8d65b5839c8964588deb807eda6314a07640
re PR target/67675 ([SH] Improve __builtin_strcmp alignment test)

gcc/
PR target/67675
* config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
addr2 individually.  Don't emit logical or insn if one is known to
be aligned approriately.
(sh_expand_cmpnstr): Likewise.

gcc/testsuite/
PR target/67675
* gcc.target/sh/pr67675.c: New.

From-SVN: r228118
gcc/ChangeLog
gcc/config/sh/sh-mem.cc
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/sh/pr67675.c [new file with mode: 0644]