[libclc] r330198 - amdgcn/fmin: Fix typos that reduced precision
Jan Vesely via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 17 11:11:29 PDT 2018
Author: jvesely
Date: Tue Apr 17 11:11:29 2018
New Revision: 330198
URL: http://llvm.org/viewvc/llvm-project?rev=330198&view=rev
Log:
amdgcn/fmin: Fix typos that reduced precision
Not sure how these sneaked in.
Fixes fminD and few other tests(fractD, cosD) on carrizo
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
Reviewed-by: Aaron Watry <awatry at gmail.com>
Modified:
libclc/trunk/amdgcn/lib/math/fmin.cl
Modified: libclc/trunk/amdgcn/lib/math/fmin.cl
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/amdgcn/lib/math/fmin.cl?rev=330198&r1=330197&r2=330198&view=diff
==============================================================================
--- libclc/trunk/amdgcn/lib/math/fmin.cl (original)
+++ libclc/trunk/amdgcn/lib/math/fmin.cl Tue Apr 17 11:11:29 2018
@@ -19,9 +19,9 @@ _CLC_BINARY_VECTORIZE(_CLC_OVERLOAD _CLC
_CLC_DEF _CLC_OVERLOAD double fmin(double x, double y)
{
- x = __builtin_canonicalizef(x);
- y = __builtin_canonicalizef(y);
- return __builtin_fminf(x, y);
+ x = __builtin_canonicalize(x);
+ y = __builtin_canonicalize(y);
+ return __builtin_fmin(x, y);
}
_CLC_BINARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, double, fmin, double, double)
More information about the cfe-commits
mailing list