Some assembler are allergic to lea reg,BYTE PTR[...].
authorAndy Polyakov <appro@openssl.org>
Sun, 2 Dec 2007 21:32:03 +0000 (21:32 +0000)
committerAndy Polyakov <appro@openssl.org>
Sun, 2 Dec 2007 21:32:03 +0000 (21:32 +0000)
Submitted by: Guenter Knauf

crypto/rc4/asm/rc4-586.pl

index ef148b228c4b3a243581451b590d2bc94a05e8d8..38a44a70efc2412409c9c450c2448533510dafd1 100644 (file)
@@ -143,7 +143,7 @@ sub RC4_loop {
                &movz   ($ty,&BP(0,$dat,$ty));
                &add    (&LB($xx),1);
                &xor    (&LB($ty),&BP(0,$inp));
                &movz   ($ty,&BP(0,$dat,$ty));
                &add    (&LB($xx),1);
                &xor    (&LB($ty),&BP(0,$inp));
-               &lea    ($inp,&BP(1,$inp));
+               &lea    ($inp,&DWP(1,$inp));
                &movz   ($tx,&BP(0,$dat,$xx));
                &cmp    ($inp,&wparam(1));
                &mov    (&BP(-1,$out,$inp),&LB($ty));
                &movz   ($tx,&BP(0,$dat,$xx));
                &cmp    ($inp,&wparam(1));
                &mov    (&BP(-1,$out,$inp),&LB($ty));