diff options
author | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2021-01-25 21:00:00 +0200 |
---|---|---|
committer | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2021-01-26 19:42:00 +0200 |
commit | b2f78ae034b8d4aa3d4cc7bf85262317832f6e0a (patch) | |
tree | 93e7ae59056959b9fac75029586f49b444e8fb99 /cipher/blake2b-amd64-avx2.S | |
parent | 9f49e806f9506533236fd44b17f17b85961b20f1 (diff) | |
download | libgcrypt-b2f78ae034b8d4aa3d4cc7bf85262317832f6e0a.tar.gz |
blake2: fix RIP register access for AVX/AVX2 implementations
* cipher/blake2b-amd64-avx2.S: Use rRIP instead of (RIP).
* cipher/blake2s-amd64-avx.S: Use rRIP instead of (RIP).
--
Reported-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Diffstat (limited to 'cipher/blake2b-amd64-avx2.S')
-rw-r--r-- | cipher/blake2b-amd64-avx2.S | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cipher/blake2b-amd64-avx2.S b/cipher/blake2b-amd64-avx2.S index 08c816cd..357e8a51 100644 --- a/cipher/blake2b-amd64-avx2.S +++ b/cipher/blake2b-amd64-avx2.S @@ -214,11 +214,11 @@ _gcry_blake2b_transform_amd64_avx2: addq $128, (STATE_T + 0)(RSTATE); adcq $0, (STATE_T + 8)(RSTATE); - vbroadcasti128 .Lshuf_ror16 (RIP), R16; - vbroadcasti128 .Lshuf_ror24 (RIP), R24; + vbroadcasti128 .Lshuf_ror16 rRIP, R16; + vbroadcasti128 .Lshuf_ror24 rRIP, R24; - vmovdqa .Liv+(0 * 8) (RIP), ROW3; - vmovdqa .Liv+(4 * 8) (RIP), ROW4; + vmovdqa .Liv+(0 * 8) rRIP, ROW3; + vmovdqa .Liv+(4 * 8) rRIP, ROW4; vmovdqu (STATE_H + 0 * 8)(RSTATE), ROW1; vmovdqu (STATE_H + 4 * 8)(RSTATE), ROW2; @@ -264,8 +264,8 @@ _gcry_blake2b_transform_amd64_avx2: vpxor ROW3, ROW1, ROW1; vpxor ROW4, ROW2, ROW2; - vmovdqa .Liv+(0 * 8) (RIP), ROW3; - vmovdqa .Liv+(4 * 8) (RIP), ROW4; + vmovdqa .Liv+(0 * 8) rRIP, ROW3; + vmovdqa .Liv+(4 * 8) rRIP, ROW4; vpxor (STATE_H + 0 * 8)(RSTATE), ROW1, ROW1; vpxor (STATE_H + 4 * 8)(RSTATE), ROW2, ROW2; |