[PATCH] D27741: [test-suite, CUDA] disable [l]lrint(1.f) checks on CUDA 7.0, 7.5

Artem Belevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 14 11:06:10 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL289687: [test-suite,CUDA] disable [l]lrint(1.f) checks on CUDA 7.0,7.5 (authored by tra).

Changed prior to commit:
  https://reviews.llvm.org/D27741?vs=81328&id=81424#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D27741

Files:
  test-suite/trunk/External/CUDA/cmath.cu
  test-suite/trunk/External/CUDA/math_h.cu


Index: test-suite/trunk/External/CUDA/math_h.cu
===================================================================
--- test-suite/trunk/External/CUDA/math_h.cu
+++ test-suite/trunk/External/CUDA/math_h.cu
@@ -1201,7 +1201,9 @@
     static_assert((std::is_same<decltype(llrint(Ambiguous())), Ambiguous>::value), "");
     assert(llrint(1) == 1LL);
     assert(llrint(1.) == 1LL);
+#if CUDA_VERSION > 7050
     assert(llrint(1.f) == 1LL);
+#endif
 }
 
 __device__ void test_llround()
@@ -1296,7 +1298,9 @@
     static_assert((std::is_same<decltype(lrint(Ambiguous())), Ambiguous>::value), "");
     assert(lrint(1) == 1L);
     assert(lrint(1.) == 1L);
+#if CUDA_VERSION > 7050
     assert(lrint(1.f) == 1L);
+#endif
 }
 
 __device__ void test_lround()
Index: test-suite/trunk/External/CUDA/cmath.cu
===================================================================
--- test-suite/trunk/External/CUDA/cmath.cu
+++ test-suite/trunk/External/CUDA/cmath.cu
@@ -1220,7 +1220,9 @@
     static_assert((std::is_same<decltype(llrint(Ambiguous())), Ambiguous>::value), "");
     assert(std::llrint(1) == 1LL);
     assert(std::llrint(1.) == 1LL);
+#if CUDA_VERSION > 7050
     assert(std::llrint(1.f) == 1LL);
+#endif
 }
 
 __device__ void test_llround()
@@ -1319,7 +1321,9 @@
     static_assert((std::is_same<decltype(lrint(Ambiguous())), Ambiguous>::value), "");
     assert(std::lrint(1) == 1L);
     assert(std::lrint(1.) == 1L);
+#if CUDA_VERSION > 7050
     assert(std::lrint(1.f) == 1L);
+#endif
 }
 
 __device__ void test_lround()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27741.81424.patch
Type: text/x-patch
Size: 1531 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161214/49a68b5b/attachment.bin>


More information about the llvm-commits mailing list