PPC64 strcmp bug

Steve Munroe sjmunroe@us.ibm.com
Fri Apr 11 19:56:00 GMT 2003


Jakub Jelinek writes:

> Either sysdeps/powerpc/powerpc64/strcmp.S needs to be rewritten to
> compare 8 bytes at a time, or it needs extsw rRTN, rRTN
> inserted where needed (with the conditional returns if they happen
> to be in loops it would be better to replace them with conditional
> jumps to extsw rRTN, rRTN; blr I guess).

I have a version of powerpc64/strcmp.S that compares 8 bytes. But I
want to think some more about the unaligned case so I am holding the
patch. You are correct that current strcmp.S needs some a extsw's to
handle the case where the word aligned difference effects int sign.

Do you want a quick patch for this case or can you wait a bit?







More information about the Libc-alpha mailing list