Skip to content

Commit

Permalink
Backport upstream simde's fix for loongarch float16 to build with clang
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=280505
simd-everywhere/simde#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
  • Loading branch information
wszqkzqk committed Nov 27, 2024
1 parent 9569695 commit e1838e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/WTF/wtf/simde/arm/neon.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)) || \
Expand Down

0 comments on commit e1838e4

Please sign in to comment.