perlasm/ppc-xlate.pl: Fix build on OS X
authorMartin Schwenke <martin@meltin.net>
Tue, 9 Nov 2021 11:07:54 +0000 (22:07 +1100)
committerTomas Mraz <tomas@openssl.org>
Thu, 18 Nov 2021 12:24:17 +0000 (13:24 +0100)
commite67edf60f2e9be6e5f5465b52d01aa26bf715280
tree942ba174155accf4afc82e88c9ecc4430272619a
parentaf16097febcd4fa31cd5fcd05ad09cf8b53659ea
perlasm/ppc-xlate.pl: Fix build on OS X

vsr2vr1() fails on OS X because the main loop doesn't strip the
non-numeric register prefixes for OS X.

Strip any non-numeric prefix (likely just "v") from registers before
doing numeric calculation, then put the prefix back on the result.

Fixes: #16995
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17026)
crypto/perlasm/ppc-xlate.pl