From 5c19834c07a07ec0dbfc376b09d18a9f49a4fb06 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Tue, 11 Nov 2025 16:47:18 +0000 Subject: [PATCH] deps: V8: cherry-pick highway@989a498fdf3 Original commit message: GCC 15 removed avx10.2-512 target PiperOrigin-RevId: 823560321 Refs: https://github.com/google/highway/commit/989a498fdf3e2b758c48998e87a2807a1a53e494 --- common.gypi | 2 +- deps/v8/third_party/highway/src/hwy/ops/set_macros-inl.h | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/common.gypi b/common.gypi index a1cd836b1867cf..20acf954bc02d4 100644 --- a/common.gypi +++ b/common.gypi @@ -38,7 +38,7 @@ # Reset this number to 0 on major V8 upgrades. # Increment by one for each non-official patch applied to deps/v8. - 'v8_embedder_string': '-node.9', + 'v8_embedder_string': '-node.10', ##### V8 defaults for Node.js ##### diff --git a/deps/v8/third_party/highway/src/hwy/ops/set_macros-inl.h b/deps/v8/third_party/highway/src/hwy/ops/set_macros-inl.h index 0d8f7e7a3c2421..34b4f8ad7e0b70 100644 --- a/deps/v8/third_party/highway/src/hwy/ops/set_macros-inl.h +++ b/deps/v8/third_party/highway/src/hwy/ops/set_macros-inl.h @@ -187,12 +187,13 @@ #define HWY_TARGET_STR_AVX3_SPR HWY_TARGET_STR_AVX3_ZEN4 #endif -#if HWY_COMPILER_GCC_ACTUAL >= 1500 || HWY_COMPILER_CLANG >= 2200 -#if HWY_HAVE_EVEX512 +// Support for avx10.2-512 was removed between clang 22 and 23 without a +// feature test macro. +#if HWY_COMPILER_CLANG >= 2200 && HWY_HAVE_EVEX512 #define HWY_TARGET_STR_AVX10_2 HWY_TARGET_STR_AVX3_SPR ",avx10.2-512" -#else +// Recent compilers drop the -512 suffix because 512 bits are always available. +#elif HWY_COMPILER_GCC_ACTUAL >= 1500 || HWY_COMPILER_CLANG >= 2200 #define HWY_TARGET_STR_AVX10_2 HWY_TARGET_STR_AVX3_SPR ",avx10.2" -#endif // HWY_HAVE_EVEX512 #else #define HWY_TARGET_STR_AVX10_2 HWY_TARGET_STR_AVX3_SPR #endif