builtins.c (expand_builtin_strncmp): Use host_integerp and tree_low_cst.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Wed, 3 Jan 2001 16:48:15 +0000 (16:48 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Wed, 3 Jan 2001 16:48:15 +0000 (16:48 +0000)
commit819c1488ed52138df119b58059b3ec846e23904a
tree1244d79bbc97f7b8e6d2a230cb7ba588b87ff8f2
parent36e40658dbae6eb6a2741762344476909983fd6a
builtins.c (expand_builtin_strncmp): Use host_integerp and tree_low_cst.

* builtins.c (expand_builtin_strncmp): Use host_integerp and
tree_low_cst.  Allow using cmpstrsi in more cases.

testsuite:
* gcc.c-torture/execute/string-opt-8.c: Add more testcases.
Turn on cmpstrsi checks for __pj__ and __i370__.

From-SVN: r38664
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/string-opt-8.c