[llvm-bugs] [Bug 44244] New: logb and logbl tests fail for riscv target

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Dec 6 13:24:31 PST 2019


            Bug ID: 44244
           Summary: logb and logbl tests fail for riscv target
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: builtins
          Assignee: unassignedbugs at nondot.org
          Reporter: pzheng at codeaurora.org
                CC: llvm-bugs at lists.llvm.org

Two tests are failing for riscv target.

Failing Tests (2):
    Builtins-riscv32-linux :: compiler_rt_logb_test.c
    Builtins-riscv32-linux :: compiler_rt_logbl_test.c

In order to run the builtin tests, I had to apply the following patch for the
COMPILER_RT_TEST_COMPILER_CFLAGS to take effect. Not sure if this is needed for
other people.

diff --git a/compiler-rt/cmake/config-ix.cmake
index 3aad08e88969..74aa16257662 100644
--- a/compiler-rt/cmake/config-ix.cmake
+++ b/compiler-rt/cmake/config-ix.cmake
@@ -195,7 +195,8 @@ endfunction()
 # specific architecture.  When cross-compiling, this is controled via
 macro(get_test_cc_for_arch arch cc_out cflags_out)
-  if(ANDROID OR ${arch} MATCHES "arm|aarch64")
+  if(ANDROID OR ${arch} MATCHES "arm|aarch64" OR
     # This is only true if we are cross-compiling.
     # Build all tests with host compiler and use host tools.
     set(${cc_out} ${COMPILER_RT_TEST_COMPILER})

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191206/f7f928cd/attachment.html>

More information about the llvm-bugs mailing list