[libc-commits] [libc] [libc][math][c23] Add f16div{, l, f128} C23 math functions (PR #97054)

LLVM Continuous Integration via libc-commits libc-commits at lists.llvm.org
Sat Jun 29 15:50:35 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `libc-aarch64-ubuntu-fullbuild-dbg` running on `libc-aarch64-ubuntu` while building `libc` at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/71/builds/1100

Here is the relevant piece of the build log for the reference:
```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcTanhfTest.SpecialNumbers
[       OK ] LlvmLibcTanhfTest.SpecialNumbers (4 us)
Ran 1 tests.  PASS: 1  FAIL: 0
[1231/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.log10f_test.__unit__.__build__.dir/log10f_test.cpp.o
[1232/2741] Linking CXX executable projects/libc/test/src/math/smoke/libc.test.src.math.smoke.acoshf_test.__unit__.__build__
[1233/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.log10_test.__unit__.__build__.dir/log10_test.cpp.o
[1234/2741] Linking CXX executable projects/libc/test/src/math/smoke/libc.test.src.math.smoke.log1p_test.__unit__.__build__
[1235/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.log2f_test.__unit__.__build__.dir/log2f_test.cpp.o
[1236/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.f16divl_test.__unit__.__build__.dir/f16divl_test.cpp.o
FAILED: projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.f16divl_test.__unit__.__build__.dir/f16divl_test.cpp.o 
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -D_DEBUG -Iprojects/libc/test/src/math/smoke -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/smoke -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc -isystem projects/libc/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -g -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -mcpu=native -std=c++17 -MD -MT projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.f16divl_test.__unit__.__build__.dir/f16divl_test.cpp.o -MF projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.f16divl_test.__unit__.__build__.dir/f16divl_test.cpp.o.d -o projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.f16divl_test.__unit__.__build__.dir/f16divl_test.cpp.o -c /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/smoke/f16divl_test.cpp
fatal error: error in backend: Unsupported library call operation!
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.	Program arguments: /usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -D_DEBUG -Iprojects/libc/test/src/math/smoke -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/smoke -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc -isystem projects/libc/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -g -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -mcpu=native -std=c++17 -MD -MT projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.f16divl_test.__unit__.__build__.dir/f16divl_test.cpp.o -MF projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.f16divl_test.__unit__.__build__.dir/f16divl_test.cpp.o.d -o projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.f16divl_test.__unit__.__build__.dir/f16divl_test.cpp.o -c /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/smoke/f16divl_test.cpp 
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module '/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/smoke/f16divl_test.cpp'.
4.	Running pass 'AArch64 Instruction Selection' on function '@_ZN7DivTestIDF16_eE20test_special_numbersEPFDF16_eeE'
#0 0x0000ffff92785bd4 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/lib/aarch64-linux-gnu/libLLVM-11.so.1+0xb85bd4)
clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
Debian clang version 11.0.1-2
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/f16divl_test-25a7f6.cpp
clang: note: diagnostic msg: /tmp/f16divl_test-25a7f6.sh
clang: note: diagnostic msg: 

********************
[1237/2741] Linking CXX executable projects/libc/test/src/math/smoke/libc.test.src.math.smoke.log10f_test.__unit__.__build__
[1238/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.nextupf16_test.__unit__.__build__.dir/nextupf16_test.cpp.o
[1239/2741] Linking CXX executable projects/libc/test/src/math/smoke/libc.test.src.math.smoke.log10_test.__unit__.__build__
[1240/2741] Linking CXX executable projects/libc/test/src/math/smoke/libc.test.src.math.smoke.log2f_test.__unit__.__build__
[1241/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.nextupf128_test.__unit__.__build__.dir/nextupf128_test.cpp.o
[1242/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.fma_test.__unit__.__build__.dir/fma_test.cpp.o
[1243/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.rintl_test.__unit__.__build__.dir/rintl_test.cpp.o
[1244/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.asinf_test.__unit__.__build__.dir/asinf_test.cpp.o
[1245/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.rintf16_test.__unit__.__build__.dir/rintf16_test.cpp.o
[1246/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.nextdownf_test.__unit__.__build__.dir/nextdownf_test.cpp.o
[1247/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.nextdownf128_test.__unit__.__build__.dir/nextdownf128_test.cpp.o
[1248/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.nextafterf_test.__unit__.__build__.dir/nextafterf_test.cpp.o
[1249/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.nextafter_test.__unit__.__build__.dir/nextafter_test.cpp.o
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcTanhfTest.SpecialNumbers
[       OK ] LlvmLibcTanhfTest.SpecialNumbers (4 us)
Ran 1 tests.  PASS: 1  FAIL: 0
[1231/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.log10f_test.__unit__.__build__.dir/log10f_test.cpp.o
[1232/2741] Linking CXX executable projects/libc/test/src/math/smoke/libc.test.src.math.smoke.acoshf_test.__unit__.__build__
[1233/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.log10_test.__unit__.__build__.dir/log10_test.cpp.o
[1234/2741] Linking CXX executable projects/libc/test/src/math/smoke/libc.test.src.math.smoke.log1p_test.__unit__.__build__
[1235/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.log2f_test.__unit__.__build__.dir/log2f_test.cpp.o
[1236/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.f16divl_test.__unit__.__build__.dir/f16divl_test.cpp.o
FAILED: projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.f16divl_test.__unit__.__build__.dir/f16divl_test.cpp.o 
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -D_DEBUG -Iprojects/libc/test/src/math/smoke -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/smoke -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc -isystem projects/libc/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -g -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -mcpu=native -std=c++17 -MD -MT projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.f16divl_test.__unit__.__build__.dir/f16divl_test.cpp.o -MF projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.f16divl_test.__unit__.__build__.dir/f16divl_test.cpp.o.d -o projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.f16divl_test.__unit__.__build__.dir/f16divl_test.cpp.o -c /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/smoke/f16divl_test.cpp
fatal error: error in backend: Unsupported library call operation!
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.	Program arguments: /usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -D_DEBUG -Iprojects/libc/test/src/math/smoke -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/smoke -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc -isystem projects/libc/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -g -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -mcpu=native -std=c++17 -MD -MT projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.f16divl_test.__unit__.__build__.dir/f16divl_test.cpp.o -MF projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.f16divl_test.__unit__.__build__.dir/f16divl_test.cpp.o.d -o projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.f16divl_test.__unit__.__build__.dir/f16divl_test.cpp.o -c /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/smoke/f16divl_test.cpp 
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module '/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/smoke/f16divl_test.cpp'.
4.	Running pass 'AArch64 Instruction Selection' on function '@_ZN7DivTestIDF16_eE20test_special_numbersEPFDF16_eeE'
#0 0x0000ffff92785bd4 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/lib/aarch64-linux-gnu/libLLVM-11.so.1+0xb85bd4)
clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
Debian clang version 11.0.1-2
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/f16divl_test-25a7f6.cpp
clang: note: diagnostic msg: /tmp/f16divl_test-25a7f6.sh
clang: note: diagnostic msg: 

********************
[1237/2741] Linking CXX executable projects/libc/test/src/math/smoke/libc.test.src.math.smoke.log10f_test.__unit__.__build__
[1238/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.nextupf16_test.__unit__.__build__.dir/nextupf16_test.cpp.o
[1239/2741] Linking CXX executable projects/libc/test/src/math/smoke/libc.test.src.math.smoke.log10_test.__unit__.__build__
[1240/2741] Linking CXX executable projects/libc/test/src/math/smoke/libc.test.src.math.smoke.log2f_test.__unit__.__build__
[1241/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.nextupf128_test.__unit__.__build__.dir/nextupf128_test.cpp.o
[1242/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.fma_test.__unit__.__build__.dir/fma_test.cpp.o
[1243/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.rintl_test.__unit__.__build__.dir/rintl_test.cpp.o
[1244/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.asinf_test.__unit__.__build__.dir/asinf_test.cpp.o
[1245/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.rintf16_test.__unit__.__build__.dir/rintf16_test.cpp.o
[1246/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.nextdownf_test.__unit__.__build__.dir/nextdownf_test.cpp.o
[1247/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.nextdownf128_test.__unit__.__build__.dir/nextdownf128_test.cpp.o
[1248/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.nextafterf_test.__unit__.__build__.dir/nextafterf_test.cpp.o
[1249/2741] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.nextafter_test.__unit__.__build__.dir/nextafter_test.cpp.o

```

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


More information about the libc-commits mailing list