[libc-commits] [PATCH] D153056: [libc] Disable the strtod and strtold tests on NVPTX

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Jun 15 11:29:56 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG7e8b0c27f252: [libc] Disable the strtod and strtold tests on NVPTX (authored by jhuber6).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D153056

Files:
  libc/test/src/stdlib/CMakeLists.txt


Index: libc/test/src/stdlib/CMakeLists.txt
===================================================================
--- libc/test/src/stdlib/CMakeLists.txt
+++ libc/test/src/stdlib/CMakeLists.txt
@@ -54,17 +54,20 @@
     libc.src.stdlib.atoll
 )
 
-add_fp_unittest(
-  strtod_test
-  SUITE
-    libc-stdlib-tests
-  SRCS
-    strtod_test.cpp
-  DEPENDS
-    libc.src.errno.errno
-    libc.src.stdlib.strtod
-    libc.src.__support.FPUtil.fenv_impl
-)
+# This fails on NVPTX where the output value is one-off of the expected value.
+if(NOT LIBC_GPU_TARGET_ARCHITECTURE_IS_NVPTX)
+  add_fp_unittest(
+    strtod_test
+    SUITE
+      libc-stdlib-tests
+    SRCS
+      strtod_test.cpp
+    DEPENDS
+      libc.src.errno.errno
+      libc.src.stdlib.strtod
+      libc.src.__support.FPUtil.fenv_impl
+  )
+endif()
 
 add_fp_unittest(
   strtof_test
@@ -123,17 +126,20 @@
     .strtol_test_support
 )
 
-add_libc_test(
-  strtold_test
-  SUITE
-    libc-stdlib-tests
-  SRCS
-    strtold_test.cpp
-  DEPENDS
-    libc.src.errno.errno
-    libc.src.__support.uint128
-    libc.src.stdlib.strtold
-)
+# This fails on NVPTX where the output value is one-off of the expected value.
+if(NOT LIBC_GPU_TARGET_ARCHITECTURE_IS_NVPTX)
+  add_libc_test(
+    strtold_test
+    SUITE
+      libc-stdlib-tests
+    SRCS
+      strtold_test.cpp
+    DEPENDS
+      libc.src.errno.errno
+      libc.src.__support.uint128
+      libc.src.stdlib.strtold
+  )
+endif()
 
 add_libc_test(
   strtoll_test


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153056.531849.patch
Type: text/x-patch
Size: 1477 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230615/d5badd75/attachment.bin>


More information about the libc-commits mailing list