Skip to content

Commit 79a59b7

Browse files
committed
Restrict evex512 to clang 18-21 only
1 parent bf42676 commit 79a59b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsodium/crypto_pwhash/argon2/argon2-fill-block-avx512f.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
defined(HAVE_EMMINTRIN_H) && defined(HAVE_TMMINTRIN_H) && defined(HAVE_SMMINTRIN_H)
2424

2525
# ifdef __clang__
26-
# if __clang_major__ >= 18
26+
# if __clang_major__ >= 18 && __clang_major__ < 22
2727
# pragma clang attribute push(__attribute__((target("sse2,ssse3,sse4.1,avx2,avx512f,evex512"))), apply_to = function)
2828
# else
2929
# pragma clang attribute push(__attribute__((target("sse2,ssse3,sse4.1,avx2,avx512f"))), apply_to = function)

0 commit comments

Comments
 (0)