[Libclc-dev] [PATCH 1/1] amdgcn/fmin: Fix typos that reduced precision
Jan Vesely via Libclc-dev
libclc-dev at lists.llvm.org
Thu Apr 12 19:12:42 PDT 2018
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>
---
amdgcn/lib/math/fmin.cl | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/amdgcn/lib/math/fmin.cl b/amdgcn/lib/math/fmin.cl
index 910f68c..35dea8b 100644
--- a/amdgcn/lib/math/fmin.cl
+++ b/amdgcn/lib/math/fmin.cl
@@ -19,9 +19,9 @@ _CLC_BINARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, float, fmin, float, float)
_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)
--
2.14.3
More information about the Libclc-dev
mailing list