[llvm] [LLVM][IR] Add constant range support for floating-point types (PR #86483)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 28 03:22:01 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-ppc64-aix` running on `aix-ppc64` while building `llvm` at step 3 "clean-build-dir".

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

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 3 (clean-build-dir) failure: Delete failed. (failure) (timed out)
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
1042.173 [425/50/535] Building CXX object unittests/DebugInfo/LogicalView/CMakeFiles/DebugInfoLogicalViewTests.dir/LogicalElementsTest.cpp.o
1042.308 [424/50/536] Linking CXX executable tools/clang/unittests/Sema/SemaTests
1042.560 [423/50/537] Building CXX object unittests/DebugInfo/LogicalView/CMakeFiles/DebugInfoLogicalViewTests.dir/DWARFReaderTest.cpp.o
1044.035 [422/50/538] Building CXX object unittests/ExecutionEngine/JITLink/CMakeFiles/JITLinkTests.dir/EHFrameSupportTests.cpp.o
1044.236 [421/50/539] Building CXX object unittests/DebugInfo/LogicalView/CMakeFiles/DebugInfoLogicalViewTests.dir/SelectElementsTest.cpp.o
1044.404 [420/50/540] Building CXX object unittests/DebugInfo/LogicalView/CMakeFiles/DebugInfoLogicalViewTests.dir/WarningInternalTest.cpp.o
1045.807 [419/50/541] Building CXX object unittests/ExecutionEngine/JITLink/CMakeFiles/JITLinkTests.dir/AArch32Tests.cpp.o
1045.992 [418/50/542] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/AbstractCallSiteTest.cpp.o
1046.383 [417/50/543] Building CXX object unittests/ExecutionEngine/MCJIT/CMakeFiles/MCJITTests.dir/MCJITTest.cpp.o
1046.573 [416/50/544] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/ConstantFPRangeTest.cpp.o
FAILED: unittests/IR/CMakeFiles/IRTests.dir/ConstantFPRangeTest.cpp.o 
/usr/local/clang-17.0.2/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_LARGE_FILE_API -D_XOPEN_SOURCE=700 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/unittests/IR -I/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/unittests/IR -I/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/include -I/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/include -I/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/third-party/unittest/googletest/include -I/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/third-party/unittest/googlemock/include -mcmodel=large -fPIC -Werror -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 -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -MD -MT unittests/IR/CMakeFiles/IRTests.dir/ConstantFPRangeTest.cpp.o -MF unittests/IR/CMakeFiles/IRTests.dir/ConstantFPRangeTest.cpp.o.d -o unittests/IR/CMakeFiles/IRTests.dir/ConstantFPRangeTest.cpp.o -c /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/unittests/IR/ConstantFPRangeTest.cpp
/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/unittests/IR/ConstantFPRangeTest.cpp:417:16: error: ignoring return value of function declared with 'nodiscard' attribute [-Werror,-Wunused-result]
  417 |   EXPECT_DEATH(ConstantFPRange::getNonNaN(APFloat(1.0), APFloat(0.0)),
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/third-party/unittest/googletest/include/gtest/gtest-death-test.h:190:15: note: expanded from macro 'EXPECT_DEATH'
  190 |   EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, matcher)
      |               ^~~~~~~~~
/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/third-party/unittest/googletest/include/gtest/gtest-death-test.h:179:21: note: expanded from macro 'EXPECT_EXIT'
  179 |   GTEST_DEATH_TEST_(statement, predicate, matcher, GTEST_NONFATAL_FAILURE_)
      |                     ^~~~~~~~~
/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/third-party/unittest/googletest/include/gtest/internal/gtest-death-test-internal.h:243:47: note: expanded from macro 'GTEST_DEATH_TEST_'
  243 |           GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, gtest_dt);            \
      |                                               ^~~~~~~~~
/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/third-party/unittest/googletest/include/gtest/internal/gtest-death-test-internal.h:216:50: note: expanded from macro 'GTEST_EXECUTE_DEATH_TEST_STATEMENT_'
  216 |   GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement)
      |                                                  ^~~~~~~~~
/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/third-party/unittest/googletest/include/gtest/internal/gtest-internal.h:1354:5: note: expanded from macro 'GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_'
 1354 |     statement;                                                    \
      |     ^~~~~~~~~
/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/unittests/IR/ConstantFPRangeTest.cpp:421:16: error: ignoring return value of function declared with 'nodiscard' attribute [-Werror,-Wunused-result]
  421 |   EXPECT_DEATH(ConstantFPRange::getNonNaN(APFloat(0.0), APFloat(1.0f)),
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/third-party/unittest/googletest/include/gtest/gtest-death-test.h:190:15: note: expanded from macro 'EXPECT_DEATH'
  190 |   EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, matcher)
      |               ^~~~~~~~~
/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/third-party/unittest/googletest/include/gtest/gtest-death-test.h:179:21: note: expanded from macro 'EXPECT_EXIT'
  179 |   GTEST_DEATH_TEST_(statement, predicate, matcher, GTEST_NONFATAL_FAILURE_)
      |                     ^~~~~~~~~
/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/third-party/unittest/googletest/include/gtest/internal/gtest-death-test-internal.h:243:47: note: expanded from macro 'GTEST_DEATH_TEST_'
  243 |           GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, gtest_dt);            \
      |                                               ^~~~~~~~~
/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/third-party/unittest/googletest/include/gtest/internal/gtest-death-test-internal.h:216:50: note: expanded from macro 'GTEST_EXECUTE_DEATH_TEST_STATEMENT_'
  216 |   GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement)
      |                                                  ^~~~~~~~~
/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/third-party/unittest/googletest/include/gtest/internal/gtest-internal.h:1354:5: note: expanded from macro 'GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_'
 1354 |     statement;                                                    \
      |     ^~~~~~~~~
/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/unittests/IR/ConstantFPRangeTest.cpp:427:16: error: ignoring return value of function declared with 'nodiscard' attribute [-Werror,-Wunused-result]

```

</details>

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


More information about the llvm-commits mailing list