Fix wrong CPU feature #ifdef for SHA1/AVX
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Thu, 30 Jun 2016 18:17:32 +0000 (21:17 +0300)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Thu, 30 Jun 2016 18:17:32 +0000 (21:17 +0300)
* cipher/sha1-avx-amd64.S: Check for HAVE_GCC_INLINE_ASM_AVX instead of
HAVE_GCC_INLINE_ASM_AVX2 & HAVE_GCC_INLINE_ASM_BMI2.
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
cipher/sha1-avx-amd64.S

index 062a45b..3b3a6d1 100644 (file)
@@ -31,8 +31,7 @@
 
 #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_GCC_INLINE_ASM_AVX) && defined(USE_SHA1)
 
 #ifdef __PIC__
 #  define RIP (%rip)