poly1305/asm/poly1305-armv8.pl: ilp32-specific poly1305_init fix.
authorAndy Polyakov <appro@openssl.org>
Sun, 12 Mar 2017 14:32:59 +0000 (15:32 +0100)
committerAndy Polyakov <appro@openssl.org>
Mon, 13 Mar 2017 17:47:07 +0000 (18:47 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit a25cef89fdf40c738f7e7a456f285217dc41fd6b)

crypto/poly1305/asm/poly1305-armv8.pl

index 607696cab2031397c3a3e01e73f1d4a8eec80794..0fc8667ac7b1674fb55a9b5e753aa03fc6de36bd 100755 (executable)
@@ -100,7 +100,11 @@ poly1305_init:
        csel    $d0,$d0,$r0,eq
        csel    $d1,$d1,$r1,eq
 
+#ifdef __ILP32__
+       stp     w12,w13,[$len]
+#else
        stp     $d0,$d1,[$len]
+#endif
 
        mov     x0,#1
 .Lno_key: