builtins.c (expand_cmpstr, [...]): New functions.
authorRichard Sandiford <richard.sandiford@arm.com>
Mon, 24 Aug 2015 17:59:07 +0000 (17:59 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Mon, 24 Aug 2015 17:59:07 +0000 (17:59 +0000)
commita666df609a95f9a569b6d09472933ff898bd805d
tree01e0ebf619815811c0cf1ff97499b72c05541632
parent762613be3e563106eec05795785bd08d33466d7e
builtins.c (expand_cmpstr, [...]): New functions.

gcc/
* builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
(expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
* config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
Add predicates for operands 0 and 3.
* config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
operand.
* config/sh/sh.md (cmpstrnsi): Change the length predicate from
immediate_operand to nonmemory_operand.

From-SVN: r227140
gcc/ChangeLog
gcc/builtins.c
gcc/config/m32c/blkmov.md
gcc/config/rx/rx.md
gcc/config/sh/sh.md