[openssl-commits] [openssl] master update

Andy Polyakov appro at openssl.org
Mon Jun 6 09:09:04 UTC 2016


The branch master has been updated
       via  0a4c87a90c6cf6628c688868cd5f13e4b9a5f19d (commit)
      from  78e91586fbeb2c3a54d2a8a28dadeeb1eb0f57a8 (commit)


- Log -----------------------------------------------------------------
commit 0a4c87a90c6cf6628c688868cd5f13e4b9a5f19d
Author: Andy Polyakov <appro at openssl.org>
Date:   Mon May 30 22:16:31 2016 +0200

    s390x assembly pack: improve portability.
    
    Some of the instructions used in latest additions are extension
    ones. There is no real reason to limit ourselves to specific
    processors, so [re-]adhere to base instruction set.
    
    RT#4548
    
    Reviewed-by: Rich Salz <rsalz at openssl.org>

-----------------------------------------------------------------------

Summary of changes:
 crypto/chacha/asm/chacha-s390x.pl | 4 ++--
 crypto/s390xcpuid.S               | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/crypto/chacha/asm/chacha-s390x.pl b/crypto/chacha/asm/chacha-s390x.pl
index c7a2692..c315264 100755
--- a/crypto/chacha/asm/chacha-s390x.pl
+++ b/crypto/chacha/asm/chacha-s390x.pl
@@ -147,7 +147,8 @@ $code.=<<___;
 .type	ChaCha20_ctr32,\@function
 .align	32
 ChaCha20_ctr32:
-	cl${g}ije	$len,0,.Lno_data	# $len==0?
+	lt${g}r	$len,$len			# $len==0?
+	bzr	%r14
 	a${g}hi	$len,-64
 	l${g}hi	%r1,-$frame
 	stm${g}	%r6,%r15,`6*$SIZE_T`($sp)
@@ -279,7 +280,6 @@ $code.=<<___;
 	stmg	%r0,%r3,$stdframe+4*12($sp)
 
 	lm${g}	%r6,%r15,`$frame+6*$SIZE_T`($sp)
-.Lno_data:
 	br	%r14
 
 .align	16
diff --git a/crypto/s390xcpuid.S b/crypto/s390xcpuid.S
index 61ef0eb..8859e9e 100644
--- a/crypto/s390xcpuid.S
+++ b/crypto/s390xcpuid.S
@@ -143,9 +143,9 @@ CRYPTO_memcmp:
 	je	.Lno_data
 
 .Loop_cmp:
-	llc	%r0,0(%r2)
+	llgc	%r0,0(%r2)
 	la	%r2,1(%r2)
-	llc	%r1,0(%r3)
+	llgc	%r1,0(%r3)
 	la	%r3,1(%r3)
 	xr	%r1,%r0
 	or	%r5,%r1


More information about the openssl-commits mailing list