[libc-commits] [libc] [libc] Fix hypotbf16 ABI difference Issue (PR #214966)
via libc-commits
libc-commits at lists.llvm.org
Sat Aug 8 07:48:50 PDT 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/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.hypotbf16_test.__unit__.__NO_FMA_OPT.__build__.dir/hypotbf16_test.cpp.o</summary>
```
FAILED: libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.hypotbf16_test.__unit__.__NO_FMA_OPT.__build__.dir/hypotbf16_test.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_24_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/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 -Xclang -fno-pch-timestamp -O3 -DNDEBUG -std=gnu++17 -UNDEBUG -D__LIBC_USE_BUILTIN_ISNAN -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_COPT_TIMEOUT_ENSURE_MONOTONICITY -DLIBC_CONF_WCTYPE_MODE=LIBC_WCTYPE_MODE_ASCII -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -DLIBC_COPT_HARDENING_MODE=LIBC_HARDENING_MODE_NONE -DLIBC_COPT_SCANF_PROVIDE_ISOC99_ALIASES -DLIBC_TEST_FLOAT_RANGE_COUNT=1231 -DLIBC_TEST_SUBPROCESS_TESTS=1 -fpie -ffixed-point -Wall -Wextra -Wconversion -Wno-sign-conversion -Wimplicit-fallthrough -Wwrite-strings -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wstrict-prototypes -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wthread-safety -DLIBC_COMPILER_HAS_STDC_FENV_ACCESS -DLIBC_TEST=UNIT -MD -MT libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.hypotbf16_test.__unit__.__NO_FMA_OPT.__build__.dir/hypotbf16_test.cpp.o -MF libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.hypotbf16_test.__unit__.__NO_FMA_OPT.__build__.dir/hypotbf16_test.cpp.o.d -o libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.hypotbf16_test.__unit__.__NO_FMA_OPT.__build__.dir/hypotbf16_test.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/test/src/math/smoke/hypotbf16_test.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/test/src/math/smoke/hypotbf16_test.cpp:17:24: error: cannot initialize a parameter of type 'Func' (aka '__llvm_libc_24_0_0_git::fputil::BFloat16 (*)(__llvm_libc_24_0_0_git::fputil::BFloat16, __llvm_libc_24_0_0_git::fputil::BFloat16)') with an rvalue of type '__bf16 (*)(__bf16, __bf16)': type mismatch at 1st parameter ('__llvm_libc_24_0_0_git::fputil::BFloat16' vs '__bf16')
17 | test_special_numbers(&LIBC_NAMESPACE::hypotbf16);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/test/src/math/smoke/HypotTest.h:22:34: note: passing argument to parameter 'func' here
22 | void test_special_numbers(Func func) {
| ^
1 error generated.
```
</details>
<details>
<summary>libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.hypotbf16_test.__unit__.__build__.dir/hypotbf16_test.cpp.o</summary>
```
FAILED: libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.hypotbf16_test.__unit__.__build__.dir/hypotbf16_test.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_24_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/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 -Xclang -fno-pch-timestamp -O3 -DNDEBUG -std=gnu++17 -UNDEBUG -mavx2 -mfma -D__LIBC_USE_BUILTIN_ISNAN -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_COPT_TIMEOUT_ENSURE_MONOTONICITY -DLIBC_CONF_WCTYPE_MODE=LIBC_WCTYPE_MODE_ASCII -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -DLIBC_COPT_HARDENING_MODE=LIBC_HARDENING_MODE_NONE -DLIBC_COPT_SCANF_PROVIDE_ISOC99_ALIASES -DLIBC_TEST_FLOAT_RANGE_COUNT=1231 -DLIBC_TEST_SUBPROCESS_TESTS=1 -fpie -ffixed-point -Wall -Wextra -Wconversion -Wno-sign-conversion -Wimplicit-fallthrough -Wwrite-strings -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wstrict-prototypes -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wthread-safety -DLIBC_COMPILER_HAS_STDC_FENV_ACCESS -DLIBC_TEST=UNIT -MD -MT libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.hypotbf16_test.__unit__.__build__.dir/hypotbf16_test.cpp.o -MF libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.hypotbf16_test.__unit__.__build__.dir/hypotbf16_test.cpp.o.d -o libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.hypotbf16_test.__unit__.__build__.dir/hypotbf16_test.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/test/src/math/smoke/hypotbf16_test.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/test/src/math/smoke/hypotbf16_test.cpp:17:24: error: cannot initialize a parameter of type 'Func' (aka '__llvm_libc_24_0_0_git::fputil::BFloat16 (*)(__llvm_libc_24_0_0_git::fputil::BFloat16, __llvm_libc_24_0_0_git::fputil::BFloat16)') with an rvalue of type '__bf16 (*)(__bf16, __bf16)': type mismatch at 1st parameter ('__llvm_libc_24_0_0_git::fputil::BFloat16' vs '__bf16')
17 | test_special_numbers(&LIBC_NAMESPACE::hypotbf16);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/test/src/math/smoke/HypotTest.h:22:34: note: passing argument to parameter 'func' here
22 | void test_special_numbers(Func func) {
| ^
1 error 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/214966
More information about the libc-commits
mailing list