[libc-commits] [libc] [libc][math] Implement `iscanonical[f|l]` as a libc math function (PR #110565)
LLVM Continuous Integration via libc-commits
libc-commits at lists.llvm.org
Wed Oct 2 07:24:09 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `libc-riscv64-debian-dbg` running on `libc-riscv64-debian` while building `libc` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/188/builds/5178
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[==========] Running 1 test from 1 test suite.
[ RUN ] LlvmLibcExceptionStatusTest.RaiseAndCrash
[ OK ] LlvmLibcExceptionStatusTest.RaiseAndCrash (4 us)
Ran 1 tests. PASS: 1 FAIL: 0
[101/1164] Running unit test libc.test.src.fenv.feholdexcept_test.__unit__
[==========] Running 1 test from 1 test suite.
[ RUN ] LlvmLibcFEnvTest.RaiseAndCrash
[ OK ] LlvmLibcFEnvTest.RaiseAndCrash (4 us)
Ran 1 tests. PASS: 1 FAIL: 0
[102/1164] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.iscanonical.__internal__.dir/iscanonical.cpp.o
FAILED: projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.iscanonical.__internal__.dir/iscanonical.cpp.o
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_18_0_0_git -D_DEBUG -I/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/build/projects/libc/src/math/generic -I/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/src/math/generic -I/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc -isystem /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/build/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 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -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 -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -O3 -std=c++17 -MD -MT projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.iscanonical.__internal__.dir/iscanonical.cpp.o -MF projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.iscanonical.__internal__.dir/iscanonical.cpp.o.d -o projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.iscanonical.__internal__.dir/iscanonical.cpp.o -c /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/src/math/generic/iscanonical.cpp
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/src/math/generic/iscanonical.cpp:16:25: error: expected unqualified-id
LLVM_LIBC_FUNCTION(int, iscanonical, (double x)) {
^
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/src/math/generic/iscanonical.cpp:16:25: error: expected ')'
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/src/math/generic/iscanonical.cpp:16:25: note: to match this '('
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/src/math/generic/iscanonical.cpp:16:46: error: expected ')'
LLVM_LIBC_FUNCTION(int, iscanonical, (double x)) {
^
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/src/math/generic/iscanonical.cpp:16:25: note: to match this '('
LLVM_LIBC_FUNCTION(int, iscanonical, (double x)) {
^
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/src/math/generic/iscanonical.cpp:16:25: error: expected ')'
LLVM_LIBC_FUNCTION(int, iscanonical, (double x)) {
^
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/src/math/generic/iscanonical.cpp:16:25: note: to match this '('
4 errors generated.
[103/1164] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.iscanonicalf.__internal__.dir/iscanonicalf.cpp.o
[104/1164] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.iscanonicall.__internal__.dir/iscanonicall.cpp.o
[105/1164] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.iscanonicalf128.__internal__.dir/iscanonicalf128.cpp.o
[106/1164] Running unit test libc.test.src.__support.hash_test.__unit__
[==========] Running 4 tests from 1 test suite.
[ RUN ] LlvmLibcHashTest.SanityCheck
[ OK ] LlvmLibcHashTest.SanityCheck (7 ms)
[ RUN ] LlvmLibcHashTest.Avalanche
[ OK ] LlvmLibcHashTest.Avalanche (2621 ms)
[ RUN ] LlvmLibcHashTest.UniformLSB
[ OK ] LlvmLibcHashTest.UniformLSB (1116 ms)
[ RUN ] LlvmLibcHashTest.UniformMSB
[ OK ] LlvmLibcHashTest.UniformMSB (481 us)
Ran 4 tests. PASS: 4 FAIL: 0
[107/1164] Running unit test libc.test.src.math.cosf_test.__unit__
[==========] Running 4 tests from 1 test suite.
[ RUN ] LlvmLibcCosfTest.SpecialNumbers
[ OK ] LlvmLibcCosfTest.SpecialNumbers (12 us)
[ RUN ] LlvmLibcCosfTest.InFloatRange
[ OK ] LlvmLibcCosfTest.InFloatRange (3585 ms)
[ RUN ] LlvmLibcCosfTest.SpecificBitPatterns
Step 7 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[==========] Running 1 test from 1 test suite.
[ RUN ] LlvmLibcExceptionStatusTest.RaiseAndCrash
[ OK ] LlvmLibcExceptionStatusTest.RaiseAndCrash (4 us)
Ran 1 tests. PASS: 1 FAIL: 0
[101/1164] Running unit test libc.test.src.fenv.feholdexcept_test.__unit__
[==========] Running 1 test from 1 test suite.
[ RUN ] LlvmLibcFEnvTest.RaiseAndCrash
[ OK ] LlvmLibcFEnvTest.RaiseAndCrash (4 us)
Ran 1 tests. PASS: 1 FAIL: 0
[102/1164] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.iscanonical.__internal__.dir/iscanonical.cpp.o
FAILED: projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.iscanonical.__internal__.dir/iscanonical.cpp.o
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_18_0_0_git -D_DEBUG -I/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/build/projects/libc/src/math/generic -I/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/src/math/generic -I/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc -isystem /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/build/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 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -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 -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -O3 -std=c++17 -MD -MT projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.iscanonical.__internal__.dir/iscanonical.cpp.o -MF projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.iscanonical.__internal__.dir/iscanonical.cpp.o.d -o projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.iscanonical.__internal__.dir/iscanonical.cpp.o -c /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/src/math/generic/iscanonical.cpp
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/src/math/generic/iscanonical.cpp:16:25: error: expected unqualified-id
LLVM_LIBC_FUNCTION(int, iscanonical, (double x)) {
^
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/src/math/generic/iscanonical.cpp:16:25: error: expected ')'
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/src/math/generic/iscanonical.cpp:16:25: note: to match this '('
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/src/math/generic/iscanonical.cpp:16:46: error: expected ')'
LLVM_LIBC_FUNCTION(int, iscanonical, (double x)) {
^
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/src/math/generic/iscanonical.cpp:16:25: note: to match this '('
LLVM_LIBC_FUNCTION(int, iscanonical, (double x)) {
^
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/src/math/generic/iscanonical.cpp:16:25: error: expected ')'
LLVM_LIBC_FUNCTION(int, iscanonical, (double x)) {
^
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-dbg/llvm-project/libc/src/math/generic/iscanonical.cpp:16:25: note: to match this '('
4 errors generated.
[103/1164] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.iscanonicalf.__internal__.dir/iscanonicalf.cpp.o
[104/1164] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.iscanonicall.__internal__.dir/iscanonicall.cpp.o
[105/1164] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.iscanonicalf128.__internal__.dir/iscanonicalf128.cpp.o
[106/1164] Running unit test libc.test.src.__support.hash_test.__unit__
[==========] Running 4 tests from 1 test suite.
[ RUN ] LlvmLibcHashTest.SanityCheck
[ OK ] LlvmLibcHashTest.SanityCheck (7 ms)
[ RUN ] LlvmLibcHashTest.Avalanche
[ OK ] LlvmLibcHashTest.Avalanche (2621 ms)
[ RUN ] LlvmLibcHashTest.UniformLSB
[ OK ] LlvmLibcHashTest.UniformLSB (1116 ms)
[ RUN ] LlvmLibcHashTest.UniformMSB
[ OK ] LlvmLibcHashTest.UniformMSB (481 us)
Ran 4 tests. PASS: 4 FAIL: 0
[107/1164] Running unit test libc.test.src.math.cosf_test.__unit__
[==========] Running 4 tests from 1 test suite.
[ RUN ] LlvmLibcCosfTest.SpecialNumbers
[ OK ] LlvmLibcCosfTest.SpecialNumbers (12 us)
[ RUN ] LlvmLibcCosfTest.InFloatRange
[ OK ] LlvmLibcCosfTest.InFloatRange (3585 ms)
[ RUN ] LlvmLibcCosfTest.SpecificBitPatterns
```
</details>
https://github.com/llvm/llvm-project/pull/110565
More information about the libc-commits
mailing list