This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR 10339: Remove unsafe memcmp optimizations
On Sat, Apr 19, 2003 at 11:54:32AM -0400, Kaveh R. Ghazi wrote:
> +byte by byte in lexicographic order starting at the beginning of each
> +string. The instruction is not allowed to prefetch more than one word
> +at a time since either string may end in the first word and reading past
> +that may access an invalid page or segment and cause a fault.
Not "word", byte.
If the target allows unaligned loads, we can't allow cmpstrsi
to load an SImode value from (page + pagesize - 3).
r~