[libc-commits] [libc] [libc][mathvec] Initial commit for LIBC vector math component (PR #173058)

via libc-commits libc-commits at lists.llvm.org
Wed Jan 7 15:09:00 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

The build failed before running any tests. Click on a failure below to see the details.

<details>
<summary>libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.dir/expf.cpp.o</summary>

```
FAILED: libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.dir/expf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -mavx2 -mfma -msse4.2 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_LENGTH_IMPL=clang_vector -DLIBC_COPT_FIND_FIRST_CHARACTER_IMPL=word -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -DLIBC_CONF_WCTYPE_MODE=LIBC_WCTYPE_MODE_ASCII -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -MD -MT libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.dir/expf.cpp.o -MF libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.dir/expf.cpp.o.d -o libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.dir/expf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/mathvec/generic/expf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/mathvec/generic/expf.cpp:10:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf.h:60:28: error: AVX vector argument of type 'cpp::simd<double, 8UL>' (vector of 8 'double' values) without 'avx512f' enabled changes the ABI [-Werror,-Wpsabi]
60 |   cpp::simd<double, N> y = inline_exp(x_d);
|                            ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf.h:45:12: error: AVX vector argument of type 'cpp::simd<uint64_t, 8UL>' (vector of 8 'uint64_t' values) without 'avx512f' enabled changes the ABI [-Werror,-Wpsabi]
45 |   auto s = exp_lookup(u);
|            ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/mathvec/generic/expf.cpp:10:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf.h:15:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf_utils.h:24:10: error: AVX vector return of type 'cpp::enable_if_t<(sizeof(double __attribute__((ext_vector_type(8)))) == sizeof(unsigned long __attribute__((ext_vector_type(8))))) && cpp::is_trivially_constructible<double __attribute__((ext_vector_type(8)))>::value && cpp::is_trivially_copyable<double __attribute__((ext_vector_type(8)))>::value && cpp::is_trivially_copyable<unsigned long __attribute__((ext_vector_type(8)))>::value, double __attribute__((ext_vector_type(8)))>' (aka 'double __attribute__((ext_vector_type(8)))') without 'avx512f' enabled changes the ABI [-Werror,-Wpsabi]
24 |   return cpp::bit_cast<cpp::simd<double, N>>(result);
|          ^
3 errors generated.
```
</details>
<details>
<summary>libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__internal__.dir/expf.cpp.o</summary>

```
FAILED: libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__internal__.dir/expf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -mavx2 -mfma -msse4.2 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_LENGTH_IMPL=clang_vector -DLIBC_COPT_FIND_FIRST_CHARACTER_IMPL=word -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -DLIBC_CONF_WCTYPE_MODE=LIBC_WCTYPE_MODE_ASCII -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -UNDEBUG -MD -MT libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__internal__.dir/expf.cpp.o -MF libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__internal__.dir/expf.cpp.o.d -o libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__internal__.dir/expf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/mathvec/generic/expf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/mathvec/generic/expf.cpp:10:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf.h:60:28: error: AVX vector argument of type 'cpp::simd<double, 8UL>' (vector of 8 'double' values) without 'avx512f' enabled changes the ABI [-Werror,-Wpsabi]
60 |   cpp::simd<double, N> y = inline_exp(x_d);
|                            ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf.h:45:12: error: AVX vector argument of type 'cpp::simd<uint64_t, 8UL>' (vector of 8 'uint64_t' values) without 'avx512f' enabled changes the ABI [-Werror,-Wpsabi]
45 |   auto s = exp_lookup(u);
|            ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/mathvec/generic/expf.cpp:10:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf.h:15:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf_utils.h:24:10: error: AVX vector return of type 'cpp::enable_if_t<(sizeof(double __attribute__((ext_vector_type(8)))) == sizeof(unsigned long __attribute__((ext_vector_type(8))))) && cpp::is_trivially_constructible<double __attribute__((ext_vector_type(8)))>::value && cpp::is_trivially_copyable<double __attribute__((ext_vector_type(8)))>::value && cpp::is_trivially_copyable<unsigned long __attribute__((ext_vector_type(8)))>::value, double __attribute__((ext_vector_type(8)))>' (aka 'double __attribute__((ext_vector_type(8)))') without 'avx512f' enabled changes the ABI [-Werror,-Wpsabi]
24 |   return cpp::bit_cast<cpp::simd<double, N>>(result);
|          ^
3 errors generated.
```
</details>
<details>
<summary>libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_FMA_OPT.dir/expf.cpp.o</summary>

```
FAILED: libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_FMA_OPT.dir/expf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -msse4.2 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_LENGTH_IMPL=clang_vector -DLIBC_COPT_FIND_FIRST_CHARACTER_IMPL=word -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -DLIBC_CONF_WCTYPE_MODE=LIBC_WCTYPE_MODE_ASCII -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -MD -MT libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_FMA_OPT.dir/expf.cpp.o -MF libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_FMA_OPT.dir/expf.cpp.o.d -o libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_FMA_OPT.dir/expf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/mathvec/generic/expf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/mathvec/generic/expf.cpp:10:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf.h:60:28: error: AVX vector argument of type 'cpp::simd<double, 4UL>' (vector of 4 'double' values) without 'avx' enabled changes the ABI [-Werror,-Wpsabi]
60 |   cpp::simd<double, N> y = inline_exp(x_d);
|                            ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf.h:45:12: error: AVX vector argument of type 'cpp::simd<uint64_t, 4UL>' (vector of 4 'uint64_t' values) without 'avx' enabled changes the ABI [-Werror,-Wpsabi]
45 |   auto s = exp_lookup(u);
|            ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/mathvec/generic/expf.cpp:10:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf.h:15:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf_utils.h:24:10: error: AVX vector return of type 'cpp::enable_if_t<(sizeof(double __attribute__((ext_vector_type(4)))) == sizeof(unsigned long __attribute__((ext_vector_type(4))))) && cpp::is_trivially_constructible<double __attribute__((ext_vector_type(4)))>::value && cpp::is_trivially_copyable<double __attribute__((ext_vector_type(4)))>::value && cpp::is_trivially_copyable<unsigned long __attribute__((ext_vector_type(4)))>::value, double __attribute__((ext_vector_type(4)))>' (aka 'double __attribute__((ext_vector_type(4)))') without 'avx' enabled changes the ABI [-Werror,-Wpsabi]
24 |   return cpp::bit_cast<cpp::simd<double, N>>(result);
|          ^
3 errors generated.
```
</details>
<details>
<summary>libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_ROUND_OPT.__internal__.dir/expf.cpp.o</summary>

```
FAILED: libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_ROUND_OPT.__internal__.dir/expf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -mavx2 -mfma -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_LENGTH_IMPL=clang_vector -DLIBC_COPT_FIND_FIRST_CHARACTER_IMPL=word -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -DLIBC_CONF_WCTYPE_MODE=LIBC_WCTYPE_MODE_ASCII -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -UNDEBUG -MD -MT libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_ROUND_OPT.__internal__.dir/expf.cpp.o -MF libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_ROUND_OPT.__internal__.dir/expf.cpp.o.d -o libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_ROUND_OPT.__internal__.dir/expf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/mathvec/generic/expf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/mathvec/generic/expf.cpp:10:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf.h:60:28: error: AVX vector argument of type 'cpp::simd<double, 8UL>' (vector of 8 'double' values) without 'avx512f' enabled changes the ABI [-Werror,-Wpsabi]
60 |   cpp::simd<double, N> y = inline_exp(x_d);
|                            ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf.h:45:12: error: AVX vector argument of type 'cpp::simd<uint64_t, 8UL>' (vector of 8 'uint64_t' values) without 'avx512f' enabled changes the ABI [-Werror,-Wpsabi]
45 |   auto s = exp_lookup(u);
|            ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/mathvec/generic/expf.cpp:10:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf.h:15:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf_utils.h:24:10: error: AVX vector return of type 'cpp::enable_if_t<(sizeof(double __attribute__((ext_vector_type(8)))) == sizeof(unsigned long __attribute__((ext_vector_type(8))))) && cpp::is_trivially_constructible<double __attribute__((ext_vector_type(8)))>::value && cpp::is_trivially_copyable<double __attribute__((ext_vector_type(8)))>::value && cpp::is_trivially_copyable<unsigned long __attribute__((ext_vector_type(8)))>::value, double __attribute__((ext_vector_type(8)))>' (aka 'double __attribute__((ext_vector_type(8)))') without 'avx512f' enabled changes the ABI [-Werror,-Wpsabi]
24 |   return cpp::bit_cast<cpp::simd<double, N>>(result);
|          ^
3 errors generated.
```
</details>
<details>
<summary>libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_FMA_OPT.__NO_ROUND_OPT.dir/expf.cpp.o</summary>

```
FAILED: libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_FMA_OPT.__NO_ROUND_OPT.dir/expf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_LENGTH_IMPL=clang_vector -DLIBC_COPT_FIND_FIRST_CHARACTER_IMPL=word -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -DLIBC_CONF_WCTYPE_MODE=LIBC_WCTYPE_MODE_ASCII -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -MD -MT libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_FMA_OPT.__NO_ROUND_OPT.dir/expf.cpp.o -MF libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_FMA_OPT.__NO_ROUND_OPT.dir/expf.cpp.o.d -o libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_FMA_OPT.__NO_ROUND_OPT.dir/expf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/mathvec/generic/expf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/mathvec/generic/expf.cpp:10:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf.h:60:28: error: AVX vector argument of type 'cpp::simd<double, 4UL>' (vector of 4 'double' values) without 'avx' enabled changes the ABI [-Werror,-Wpsabi]
60 |   cpp::simd<double, N> y = inline_exp(x_d);
|                            ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf.h:45:12: error: AVX vector argument of type 'cpp::simd<uint64_t, 4UL>' (vector of 4 'uint64_t' values) without 'avx' enabled changes the ABI [-Werror,-Wpsabi]
45 |   auto s = exp_lookup(u);
|            ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/mathvec/generic/expf.cpp:10:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf.h:15:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf_utils.h:24:10: error: AVX vector return of type 'cpp::enable_if_t<(sizeof(double __attribute__((ext_vector_type(4)))) == sizeof(unsigned long __attribute__((ext_vector_type(4))))) && cpp::is_trivially_constructible<double __attribute__((ext_vector_type(4)))>::value && cpp::is_trivially_copyable<double __attribute__((ext_vector_type(4)))>::value && cpp::is_trivially_copyable<unsigned long __attribute__((ext_vector_type(4)))>::value, double __attribute__((ext_vector_type(4)))>' (aka 'double __attribute__((ext_vector_type(4)))') without 'avx' enabled changes the ABI [-Werror,-Wpsabi]
24 |   return cpp::bit_cast<cpp::simd<double, N>>(result);
|          ^
3 errors generated.
```
</details>
<details>
<summary>libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_FMA_OPT.__NO_ROUND_OPT.__internal__.dir/expf.cpp.o</summary>

```
FAILED: libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_FMA_OPT.__NO_ROUND_OPT.__internal__.dir/expf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_LENGTH_IMPL=clang_vector -DLIBC_COPT_FIND_FIRST_CHARACTER_IMPL=word -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -DLIBC_CONF_WCTYPE_MODE=LIBC_WCTYPE_MODE_ASCII -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -UNDEBUG -MD -MT libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_FMA_OPT.__NO_ROUND_OPT.__internal__.dir/expf.cpp.o -MF libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_FMA_OPT.__NO_ROUND_OPT.__internal__.dir/expf.cpp.o.d -o libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_FMA_OPT.__NO_ROUND_OPT.__internal__.dir/expf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/mathvec/generic/expf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/mathvec/generic/expf.cpp:10:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf.h:60:28: error: AVX vector argument of type 'cpp::simd<double, 4UL>' (vector of 4 'double' values) without 'avx' enabled changes the ABI [-Werror,-Wpsabi]
60 |   cpp::simd<double, N> y = inline_exp(x_d);
|                            ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf.h:45:12: error: AVX vector argument of type 'cpp::simd<uint64_t, 4UL>' (vector of 4 'uint64_t' values) without 'avx' enabled changes the ABI [-Werror,-Wpsabi]
45 |   auto s = exp_lookup(u);
|            ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/mathvec/generic/expf.cpp:10:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf.h:15:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf_utils.h:24:10: error: AVX vector return of type 'cpp::enable_if_t<(sizeof(double __attribute__((ext_vector_type(4)))) == sizeof(unsigned long __attribute__((ext_vector_type(4))))) && cpp::is_trivially_constructible<double __attribute__((ext_vector_type(4)))>::value && cpp::is_trivially_copyable<double __attribute__((ext_vector_type(4)))>::value && cpp::is_trivially_copyable<unsigned long __attribute__((ext_vector_type(4)))>::value, double __attribute__((ext_vector_type(4)))>' (aka 'double __attribute__((ext_vector_type(4)))') without 'avx' enabled changes the ABI [-Werror,-Wpsabi]
24 |   return cpp::bit_cast<cpp::simd<double, N>>(result);
|          ^
3 errors generated.
```
</details>
<details>
<summary>libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_FMA_OPT.__internal__.dir/expf.cpp.o</summary>

```
FAILED: libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_FMA_OPT.__internal__.dir/expf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -msse4.2 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_LENGTH_IMPL=clang_vector -DLIBC_COPT_FIND_FIRST_CHARACTER_IMPL=word -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -DLIBC_CONF_WCTYPE_MODE=LIBC_WCTYPE_MODE_ASCII -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -UNDEBUG -MD -MT libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_FMA_OPT.__internal__.dir/expf.cpp.o -MF libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_FMA_OPT.__internal__.dir/expf.cpp.o.d -o libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_FMA_OPT.__internal__.dir/expf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/mathvec/generic/expf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/mathvec/generic/expf.cpp:10:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf.h:60:28: error: AVX vector argument of type 'cpp::simd<double, 4UL>' (vector of 4 'double' values) without 'avx' enabled changes the ABI [-Werror,-Wpsabi]
60 |   cpp::simd<double, N> y = inline_exp(x_d);
|                            ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf.h:45:12: error: AVX vector argument of type 'cpp::simd<uint64_t, 4UL>' (vector of 4 'uint64_t' values) without 'avx' enabled changes the ABI [-Werror,-Wpsabi]
45 |   auto s = exp_lookup(u);
|            ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/mathvec/generic/expf.cpp:10:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf.h:15:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf_utils.h:24:10: error: AVX vector return of type 'cpp::enable_if_t<(sizeof(double __attribute__((ext_vector_type(4)))) == sizeof(unsigned long __attribute__((ext_vector_type(4))))) && cpp::is_trivially_constructible<double __attribute__((ext_vector_type(4)))>::value && cpp::is_trivially_copyable<double __attribute__((ext_vector_type(4)))>::value && cpp::is_trivially_copyable<unsigned long __attribute__((ext_vector_type(4)))>::value, double __attribute__((ext_vector_type(4)))>' (aka 'double __attribute__((ext_vector_type(4)))') without 'avx' enabled changes the ABI [-Werror,-Wpsabi]
24 |   return cpp::bit_cast<cpp::simd<double, N>>(result);
|          ^
3 errors generated.
```
</details>
<details>
<summary>libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_ROUND_OPT.dir/expf.cpp.o</summary>

```
FAILED: libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_ROUND_OPT.dir/expf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -mavx2 -mfma -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_LENGTH_IMPL=clang_vector -DLIBC_COPT_FIND_FIRST_CHARACTER_IMPL=word -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -DLIBC_CONF_WCTYPE_MODE=LIBC_WCTYPE_MODE_ASCII -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -MD -MT libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_ROUND_OPT.dir/expf.cpp.o -MF libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_ROUND_OPT.dir/expf.cpp.o.d -o libc/src/mathvec/generic/CMakeFiles/libc.src.mathvec.generic.expf.__NO_ROUND_OPT.dir/expf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/mathvec/generic/expf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/mathvec/generic/expf.cpp:10:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf.h:60:28: error: AVX vector argument of type 'cpp::simd<double, 8UL>' (vector of 8 'double' values) without 'avx512f' enabled changes the ABI [-Werror,-Wpsabi]
60 |   cpp::simd<double, N> y = inline_exp(x_d);
|                            ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf.h:45:12: error: AVX vector argument of type 'cpp::simd<uint64_t, 8UL>' (vector of 8 'uint64_t' values) without 'avx512f' enabled changes the ABI [-Werror,-Wpsabi]
45 |   auto s = exp_lookup(u);
|            ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/mathvec/generic/expf.cpp:10:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf.h:15:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/mathvec/expf_utils.h:24:10: error: AVX vector return of type 'cpp::enable_if_t<(sizeof(double __attribute__((ext_vector_type(8)))) == sizeof(unsigned long __attribute__((ext_vector_type(8))))) && cpp::is_trivially_constructible<double __attribute__((ext_vector_type(8)))>::value && cpp::is_trivially_copyable<double __attribute__((ext_vector_type(8)))>::value && cpp::is_trivially_copyable<unsigned long __attribute__((ext_vector_type(8)))>::value, double __attribute__((ext_vector_type(8)))>' (aka 'double __attribute__((ext_vector_type(8)))') without 'avx512f' enabled changes the ABI [-Werror,-Wpsabi]
24 |   return cpp::bit_cast<cpp::simd<double, N>>(result);
|          ^
3 errors generated.
```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/173058


More information about the libc-commits mailing list