From 49376e27f3d2c8b529ea6e061349bbc250fd352d Mon Sep 17 00:00:00 2001 From: Zhou Qiankang Date: Wed, 27 Nov 2024 20:42:08 +0800 Subject: [PATCH] [loong64] Backport upstream simde's fix for loongarch float16 to build with clang https://bugs.webkit.org/show_bug.cgi?id=280505 https://github.com/simd-everywhere/simde/pull/1224 Reviewed by NOBODY (OOPS!). Fixed the compilation issue on the Loongarch platform with clang: ` ../test/x86/avx512/../../../simde/simde-f16.h:100:11: error: _Float16 is not supported on this target.` * Source/WTF/wtf/simde/arm/neon.h: use a portable version to avoid compilation errors in loongarch's float16 --- Source/WTF/wtf/simde/arm/neon.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/WTF/wtf/simde/arm/neon.h b/Source/WTF/wtf/simde/arm/neon.h index 28dc5821f3f92..0a2e96d9176df 100644 --- a/Source/WTF/wtf/simde/arm/neon.h +++ b/Source/WTF/wtf/simde/arm/neon.h @@ -8788,6 +8788,7 @@ SIMDE_BEGIN_DECLS_ !(defined(HEDLEY_MSVC_VERSION) && defined(__clang__)) && \ !(defined(SIMDE_ARCH_MIPS) && defined(__clang__)) && \ !(defined(SIMDE_ARCH_ZARCH) && defined(__clang__)) && \ + !(defined(SIMDE_ARCH_LOONGARCH) && defined(__clang__)) && \ !(defined(__clang__) && defined(SIMDE_ARCH_RISCV64)) && ( \ defined(SIMDE_X86_AVX512FP16_NATIVE) || \ (defined(SIMDE_ARCH_X86_SSE2) && HEDLEY_GCC_VERSION_CHECK(12,0,0)) || \