You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clang/test/dpct/math-functions.cu
+22-7Lines changed: 22 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -663,17 +663,32 @@ __device__ A min(A a, A b) { return a; }
663
663
__device__ A max(A a, A b) { return a; }
664
664
665
665
template <classT> __device__ T clamp(T x, T a, T b) {
666
-
// CHECK: /*
667
-
// CHECK-NEXT: DPCT1064:{{[0-9]+}}: Migrated min call is used in a macro/template definition and may not be valid for all macro/template uses. Adjust the code.
668
-
// CHECK-NEXT: */
669
-
// CHECK-NEXT: /*
670
-
// CHECK-NEXT: DPCT1064:{{[0-9]+}}: Migrated max call is used in a macro/template definition and may not be valid for all macro/template uses. Adjust the code.
0 commit comments