[Libclc-dev] [PATCH 1/1] relational/select: Condition types for half are short/ushort, not char/uchar

Jan Vesely via Libclc-dev libclc-dev at lists.llvm.org
Tue Apr 24 14:41:39 PDT 2018


Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
 generic/include/clc/relational/select.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/generic/include/clc/relational/select.inc b/generic/include/clc/relational/select.inc
index 9c4aa67..11a957a 100644
--- a/generic/include/clc/relational/select.inc
+++ b/generic/include/clc/relational/select.inc
@@ -9,8 +9,8 @@
 #define __CLC_S_GENTYPE __CLC_XCONCAT(int, __CLC_VECSIZE)
 #define __CLC_U_GENTYPE __CLC_XCONCAT(uint, __CLC_VECSIZE)
 #elif __CLC_FPSIZE == 16
-#define __CLC_S_GENTYPE __CLC_XCONCAT(char, __CLC_VECSIZE)
-#define __CLC_U_GENTYPE __CLC_XCONCAT(uchar, __CLC_VECSIZE)
+#define __CLC_S_GENTYPE __CLC_XCONCAT(short, __CLC_VECSIZE)
+#define __CLC_U_GENTYPE __CLC_XCONCAT(ushort, __CLC_VECSIZE)
 #endif
 
 _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE select(__CLC_GENTYPE x, __CLC_GENTYPE y, __CLC_S_GENTYPE z);
-- 
2.14.3



More information about the Libclc-dev mailing list