builtins.c (expand_builtin_strcmp): Use const*_rtx when expanding strcmp at compile...
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sun, 3 Dec 2000 03:34:03 +0000 (03:34 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sun, 3 Dec 2000 03:34:03 +0000 (03:34 +0000)
commitca8034a0ea78638a2c9cdc54b13274fcb78fdfa4
treea7bb3902b985bd7b9ac739d038afd6ef0f0f25a9
parent6c873122ce204fca1fdefa763661147ae239544d
builtins.c (expand_builtin_strcmp): Use const*_rtx when expanding strcmp at compile-time.

* builtins.c (expand_builtin_strcmp): Use const*_rtx when
expanding strcmp at compile-time.  Add another transformation.
(expand_builtin_strncmp): Add more transformations.  Call
expand_builtin_memcmp, not expand_builtin_strcmp, under
appropriate conditions if HAVE_cmpstrsi.

testsuite:
gcc.c-torture/execute/string-opt-3.c: Add more strcmp checks.
gcc.c-torture/execute/string-opt-8.c: Add more strncmp checks.

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