Skip to content

Commit 989a498

Browse files
jan-wassenbergcopybara-github
authored andcommitted
GCC 15 removed avx10.2-512 target
PiperOrigin-RevId: 823560321
1 parent 961f136 commit 989a498

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

hwy/ops/set_macros-inl.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,13 @@
187187
#define HWY_TARGET_STR_AVX3_SPR HWY_TARGET_STR_AVX3_ZEN4
188188
#endif
189189

190-
#if HWY_COMPILER_GCC_ACTUAL >= 1500 || HWY_COMPILER_CLANG >= 2200
191-
#if HWY_HAVE_EVEX512
190+
// Support for avx10.2-512 was removed between clang 22 and 23 without a
191+
// feature test macro.
192+
#if HWY_COMPILER_CLANG >= 2200 && HWY_HAVE_EVEX512
192193
#define HWY_TARGET_STR_AVX10_2 HWY_TARGET_STR_AVX3_SPR ",avx10.2-512"
193-
#else
194+
// Recent compilers drop the -512 suffix because 512 bits are always available.
195+
#elif HWY_COMPILER_GCC_ACTUAL >= 1500 || HWY_COMPILER_CLANG >= 2200
194196
#define HWY_TARGET_STR_AVX10_2 HWY_TARGET_STR_AVX3_SPR ",avx10.2"
195-
#endif // HWY_HAVE_EVEX512
196197
#else
197198
#define HWY_TARGET_STR_AVX10_2 HWY_TARGET_STR_AVX3_SPR
198199
#endif

0 commit comments

Comments
 (0)