[libc-commits] [PATCH] D152742: [libc] Fix floating point test failing to build on the GPU

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Jun 12 13:06:51 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG746e72910fce: [libc] Fix floating point test failing to build on the GPU (authored by jhuber6).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152742/new/

https://reviews.llvm.org/D152742

Files:
  libc/test/src/__support/FPUtil/CMakeLists.txt


Index: libc/test/src/__support/FPUtil/CMakeLists.txt
===================================================================
--- libc/test/src/__support/FPUtil/CMakeLists.txt
+++ libc/test/src/__support/FPUtil/CMakeLists.txt
@@ -1,15 +1,17 @@
 add_custom_target(libc-fputil-tests)
 
-add_fp_unittest(
-  dyadic_float_test
-  NEED_MPFR
-  SUITE
-    libc-fputil-tests
-  SRCS
-    dyadic_float_test.cpp
-  DEPENDS
-    libc.src.__support.FPUtil.dyadic_float
-)
+if(NOT LIBC_TARGET_ARCHITECTURE_IS_GPU)
+  add_fp_unittest(
+    dyadic_float_test
+    NEED_MPFR
+    SUITE
+      libc-fputil-tests
+    SRCS
+      dyadic_float_test.cpp
+    DEPENDS
+      libc.src.__support.FPUtil.dyadic_float
+  )
+endif()
 
 add_libc_test(
   fpbits_test
@@ -22,12 +24,14 @@
     libc.src.__support.FPUtil.fpbits_str
 )
 
-add_fp_unittest(
-  rounding_mode_test
-  SUITE
-    libc-fputil-tests
-  SRCS
-    rounding_mode_test.cpp
-  DEPENDS
-    libc.src.__support.FPUtil.rounding_mode
-)
+if(NOT LIBC_TARGET_ARCHITECTURE_IS_GPU)
+  add_fp_unittest(
+    rounding_mode_test
+    SUITE
+      libc-fputil-tests
+    SRCS
+      rounding_mode_test.cpp
+    DEPENDS
+      libc.src.__support.FPUtil.rounding_mode
+  )
+endif()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152742.530648.patch
Type: text/x-patch
Size: 1205 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230612/3e1b12d9/attachment.bin>


More information about the libc-commits mailing list