https://bugs.llvm.org/show_bug.cgi?id=44244

            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: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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
b/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
 # COMPILER_RT_TEST_COMPILER and COMPILER_RT_TEST_COMPILER_CFLAGS.
 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
+      COMPILER_RT_TEST_COMPILER_CFLAGS)
     # 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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to