This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PPC64 strcmp bug


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?






Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]