Re: [#523086] parisc/strstr.S broken

Michael Mueller <[email protected]> Tue, 06 Dec 2011 03:18:02 +0100
Newsgroups gmane.linux.lib.dietlibc
Message-ID <[email protected]>
Hi,

I wrote:
> --- parisc/strstr.S.orig        2011-11-08 22:06:20.000000000 +0100
> +++ parisc/strstr.S     2011-12-06 02:26:19.000000000 +0100
...
>  	cmpb,<>,n %r21, %r0, .Lloop
> -	nop
> + 	ldb,ma 1(%r22), %r24

Forgot to remove the ",n" from the compare instruction. As it is above
the load following it will not be executed when taking the loop. This is
not as intended.

  	cmpb,<> %r21, %r0, .Lloop
 	ldb,ma 1(%r22), %r24

looks better.



Michael