提交 5a63e155 编写于 作者: L Lei Maohui 提交者: Richard Levitte

Fix build error for aarch64 big endian.

Modified rev to rev64, because rev only takes integer registers.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90827
Otherwise, the following error will occur.

Error: operand 1 must be an integer register -- `rev v31.16b,v31.16b'

CLA: trivial
Signed-off-by: NLei Maohui <leimaohui@cn.fujitsu.com>
Reviewed-by: NShane Lontis <shane.lontis@oracle.com>
Reviewed-by: NRichard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9151)

(cherry picked from commit 7b0fceed21c8929e0c6694f57018aa1dbba03e15)
上级 57634493
...@@ -738,7 +738,7 @@ $code.=<<___; ...@@ -738,7 +738,7 @@ $code.=<<___;
blo .Lprocess_block_ce blo .Lprocess_block_ce
ldr d31,[$inp],#8 // *inp++ ldr d31,[$inp],#8 // *inp++
#ifdef __AARCH64EB__ #ifdef __AARCH64EB__
rev v31.16b,v31.16b rev64 v31.16b,v31.16b
#endif #endif
eor $A[$j/5][$j%5],$A[$j/5][$j%5],v31.16b eor $A[$j/5][$j%5],$A[$j/5][$j%5],v31.16b
beq .Lprocess_block_ce beq .Lprocess_block_ce
...@@ -747,7 +747,7 @@ ___ ...@@ -747,7 +747,7 @@ ___
$code.=<<___; $code.=<<___;
ldr d31,[$inp],#8 // *inp++ ldr d31,[$inp],#8 // *inp++
#ifdef __AARCH64EB__ #ifdef __AARCH64EB__
rev v31.16b,v31.16b rev64 v31.16b,v31.16b
#endif #endif
eor $A[4][4],$A[4][4],v31.16b eor $A[4][4],$A[4][4],v31.16b
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册