ppc.pl: fix bug in bn_mul_comba4 [from HEAD].
authorAndy Polyakov <appro@openssl.org>
Sat, 5 Nov 2011 10:17:06 +0000 (10:17 +0000)
committerAndy Polyakov <appro@openssl.org>
Sat, 5 Nov 2011 10:17:06 +0000 (10:17 +0000)
PR: 2636
Submitted by: Charles Bryant

crypto/bn/asm/ppc.pl

index 806e53ad6e1d005d138148c0d09bba9f14bc7633..84448836e3ddf8341243a600c3864801d57e3015 100644 (file)
@@ -1039,7 +1039,7 @@ sub data {
        addze   r11,r0
                                        #mul_add_c(a[3],b[2],c3,c1,c2);
        $LD     r6,`3*$BNSZ`(r4)
-       $LD     r7,`2*$BNSZ`(r4)
+       $LD     r7,`2*$BNSZ`(r5)
        $UMULL  r8,r6,r7
        $UMULH  r9,r6,r7
        addc    r12,r8,r12