cipher/sha1-avx-amd64.S is for AVX (not AVX2)?
NIIBE Yutaka
gniibe at fsij.org
Wed Jun 29 02:40:59 CEST 2016
Hello,
While looking at this issue:
https://bugs.gnupg.org/gnupg/issue2396
I found a problem in cipher/sha1-avx-amd64.S.
While I don't have knowledge of those instructions, it seems for me
that something like following is needed, for a platform where AVX2 is
not supported.
Jussi, could you please confirm?
diff --git a/cipher/sha1-avx-amd64.S b/cipher/sha1-avx-amd64.S
index 062a45b..70efe95 100644
--- a/cipher/sha1-avx-amd64.S
+++ b/cipher/sha1-avx-amd64.S
@@ -31,8 +31,8 @@
#if (defined(HAVE_COMPATIBLE_GCC_AMD64_PLATFORM_AS) || \
defined(HAVE_COMPATIBLE_GCC_WIN64_PLATFORM_AS)) && \
- defined(HAVE_GCC_INLINE_ASM_BMI2) && \
- defined(HAVE_GCC_INLINE_ASM_AVX2) && defined(USE_SHA1)
+ defined(HAVE_INTEL_SYNTAX_PLATFORM_AS) && \
+ defined(HAVE_GCC_INLINE_ASM_AVX) && defined(USE_SHA1)
#ifdef __PIC__
# define RIP (%rip)
--
More information about the Gcrypt-devel
mailing list