i386.md (cmpstrnsi): New test to bail out if neither string input is a string constant.
authorAaron Sawdey <acsawdey@linux.vnet.ibm.com>
Thu, 17 Nov 2016 18:58:16 +0000 (18:58 +0000)
committerAaron Sawdey <acsawdey@gcc.gnu.org>
Thu, 17 Nov 2016 18:58:16 +0000 (12:58 -0600)
commitd9df71be907c93848f4ab31b280080da59cf5b5a
treef1456edc800a3f936cd48b99f52fdb8776d79572
parent5fe353c893256a75c057a49af66fc4838fe82d7d
i386.md (cmpstrnsi): New test to bail out if neither string input is a string constant.

2016-11-17  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>

* config/i386/i386.md (cmpstrnsi): New test to bail out if neither
string input is a string constant.
* builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
via cmpstrnsi even if neither string is constant.

From-SVN: r242556
gcc/ChangeLog
gcc/builtins.c
gcc/config/i386/i386.md