Commit fc97c882 authored by Andy Polyakov's avatar Andy Polyakov
Browse files

sha/asm/keccak1600-s390x.pl: resolve -march=z900 portability issue.



Negative displacement in memory references was not originally specified,
so that for maximum coverage one should abstain from it, just like with
any other extension. [Unless it's guarded by run-time switch, but there
is no switch in keccak1600-s390x.]

Reviewed-by: default avatarTim Hudson <tjh@openssl.org>
Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7239)
parent 990fe909
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -432,9 +432,9 @@ SHA3_absorb:
	lrvg	%r0,0($inp)
	la	$inp,8($inp)
	xg	%r0,0(%r1)
	la	%r1,8(%r1)
	a${g}hi	$len,-8
	stg	%r0,-8(%r1)
	stg	%r0,0(%r1)
	la	%r1,8(%r1)
	brct	$bsz,.Lblock_absorb

	stm${g}	$inp,$len,$frame+3*$SIZE_T($sp)