[libc-commits] [libc] 4c50e41 - [libc][mathvec] Fix missing ABI-prefix from causing errors (#210127)
via libc-commits
libc-commits at lists.llvm.org
Thu Jul 16 11:46:44 PDT 2026
Author: DylanFleming-arm
Date: 2026-07-16T18:46:38Z
New Revision: 4c50e41095b36cfa2e362a4f1990c4df59533836
URL: https://github.com/llvm/llvm-project/commit/4c50e41095b36cfa2e362a4f1990c4df59533836
DIFF: https://github.com/llvm/llvm-project/commit/4c50e41095b36cfa2e362a4f1990c4df59533836.diff
LOG: [libc][mathvec] Fix missing ABI-prefix from causing errors (#210127)
abi_prefix.h throws errors for unsupported ABI targets. This patch
modifies that behaviour to instead fall back onto a default
naming scheme instead, as to not break non-vfabi supporting targets.
Added:
Modified:
libc/src/mathvec/abi_prefix.h
Removed:
################################################################################
diff --git a/libc/src/mathvec/abi_prefix.h b/libc/src/mathvec/abi_prefix.h
index 3c299ec795f4f..434f0a742397a 100644
--- a/libc/src/mathvec/abi_prefix.h
+++ b/libc/src/mathvec/abi_prefix.h
@@ -31,7 +31,7 @@
#elif defined(LIBC_TARGET_CPU_HAS_ARM_NEON)
#define LIBC_MATHVEC_FLOAT_VFABI_PREFIX "_ZGVnN4v_"
#else
-#error "Unsupported target for mathvec VFABI symbols"
+#define LIBC_MATHVEC_FLOAT_VFABI_PREFIX "_ZGV_"
#endif
#endif // LIBC_MATHVEC_FLOAT_VFABI_PREFIX
More information about the libc-commits
mailing list