summaryrefslogtreecommitdiff
path: root/cipher/asm-poly1305-aarch64.h
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@iki.fi>2020-04-02 19:47:45 +0300
committerJussi Kivilinna <jussi.kivilinna@iki.fi>2020-04-02 19:47:45 +0300
commit89b3ded8df969fe5fb31313c60419dd34d36b605 (patch)
treed3a059efb105577c35c996e7327f8601cf6419d0 /cipher/asm-poly1305-aarch64.h
parent6a5743469a4366b1e238d378e427442f04400950 (diff)
downloadlibgcrypt-89b3ded8df969fe5fb31313c60419dd34d36b605.tar.gz
asm-poly1305-aarch64: fix building with clang
* cipher/asm-poly1305-aarch64.h (POLY1305_BLOCK_PART25): Use correct instruction format for right-shifting. -- GCC recognizes 32-bit ARM's 'move with barrel shift operand' on Aarch64, but clang does not. Therefore switch to use shift instruction instead. Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Diffstat (limited to 'cipher/asm-poly1305-aarch64.h')
-rw-r--r--cipher/asm-poly1305-aarch64.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cipher/asm-poly1305-aarch64.h b/cipher/asm-poly1305-aarch64.h
index 6c342bee..90092709 100644
--- a/cipher/asm-poly1305-aarch64.h
+++ b/cipher/asm-poly1305-aarch64.h
@@ -167,7 +167,7 @@
/* carry propagation */ \
and POLY_R_H2, POLY_R_H0, #3;
#define POLY1305_BLOCK_PART25() \
- mov POLY_R_H0, POLY_R_H0, lsr #2;
+ lsr POLY_R_H0, POLY_R_H0, #2;
#define POLY1305_BLOCK_PART26() \
add POLY_R_H0, POLY_R_H0, POLY_R_H0, lsl #2;
#define POLY1305_BLOCK_PART27() \