From: Patrick Steuer Date: Thu, 7 Feb 2019 15:44:05 +0000 (+0100) Subject: s390x assembly pack: allow alignment hints for vector load/store X-Git-Tag: openssl-3.0.0-alpha1~2127 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=11aad862850cb2e639756e7126216b6cf38af26b;hp=bb5b3e6dd0575a4fa96f5085228b716062c00502 s390x assembly pack: allow alignment hints for vector load/store z14 introduced alignment hints to help vector load/store performance. For its predecessors, alignment hint defaults to 0 (no alignment indicated). Signed-off-by: Patrick Steuer Reviewed-by: Paul Dale Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/8181) --- diff --git a/crypto/perlasm/s390x.pm b/crypto/perlasm/s390x.pm index 5f3a49dd0c..c00218a0cc 100644 --- a/crypto/perlasm/s390x.pm +++ b/crypto/perlasm/s390x.pm @@ -250,7 +250,7 @@ sub vgmg { } sub vl { - confess(err("ARGNUM")) if ($#_!=1); + confess(err("ARGNUM")) if ($#_<1||$#_>2); VRX(0xe706,@_); } @@ -345,7 +345,7 @@ sub vllezg { } sub vlm { - confess(err("ARGNUM")) if ($#_!=2); + confess(err("ARGNUM")) if ($#_<2||$#_>3); VRSa(0xe736,@_); } @@ -548,7 +548,7 @@ sub vsegf { } sub vst { - confess(err("ARGNUM")) if ($#_!=1); + confess(err("ARGNUM")) if ($#_<1||$#_>2); VRX(0xe70e,@_); } @@ -570,7 +570,7 @@ sub vsteg { } sub vstm { - confess(err("ARGNUM")) if ($#_!=2); + confess(err("ARGNUM")) if ($#_<2||$#_>3); VRSa(0xe73e,@_); }