summaryrefslogtreecommitdiffstats
path: root/libclc/generic/lib/relational
diff options
context:
space:
mode:
authorAaron Watry <awatry@gmail.com>2014-06-25 21:08:38 +0000
committerAaron Watry <awatry@gmail.com>2014-06-25 21:08:38 +0000
commitd7f158e0061984f3fbc25d4195dd09c219e24724 (patch)
treef8582032b7b195d36a740357563f43accdc0b518 /libclc/generic/lib/relational
parent7c9f6c86c9fcbc60f8701e3bae13d7a0cc294939 (diff)
downloadbcm5719-llvm-d7f158e0061984f3fbc25d4195dd09c219e24724.tar.gz
bcm5719-llvm-d7f158e0061984f3fbc25d4195dd09c219e24724.zip
relational: Fix signbit
The vector components were mistakenly using () instead of {}, which caused all but the last vector component to be dropped on the floor. Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Jeroen Ketema <j.ketema@imperial.ac.uk> llvm-svn: 211733
Diffstat (limited to 'libclc/generic/lib/relational')
-rw-r--r--libclc/generic/lib/relational/signbit.cl14
1 files changed, 7 insertions, 7 deletions
diff --git a/libclc/generic/lib/relational/signbit.cl b/libclc/generic/lib/relational/signbit.cl
index 1f496d910de..f4299606828 100644
--- a/libclc/generic/lib/relational/signbit.cl
+++ b/libclc/generic/lib/relational/signbit.cl
@@ -17,35 +17,35 @@ _CLC_DEF _CLC_OVERLOAD RET_TYPE FUNCTION(ARG_TYPE x) { \
#define _CLC_DEFINE_RELATIONAL_UNARY_VEC3(RET_TYPE, FUNCTION, ARG_TYPE) \
_CLC_DEF _CLC_OVERLOAD RET_TYPE FUNCTION(ARG_TYPE x) { \
- return (RET_TYPE)((FUNCTION(x.s0), FUNCTION(x.s1), FUNCTION(x.s2)) != (RET_TYPE)0); \
+ return (RET_TYPE)( (RET_TYPE){FUNCTION(x.s0), FUNCTION(x.s1), FUNCTION(x.s2)} != (RET_TYPE)0); \
} \
#define _CLC_DEFINE_RELATIONAL_UNARY_VEC4(RET_TYPE, FUNCTION, ARG_TYPE) \
_CLC_DEF _CLC_OVERLOAD RET_TYPE FUNCTION(ARG_TYPE x) { \
return (RET_TYPE)( \
- ( \
+ (RET_TYPE){ \
FUNCTION(x.s0), FUNCTION(x.s1), FUNCTION(x.s2), FUNCTION(x.s3) \
- ) != (RET_TYPE)0); \
+ } != (RET_TYPE)0); \
} \
#define _CLC_DEFINE_RELATIONAL_UNARY_VEC8(RET_TYPE, FUNCTION, ARG_TYPE) \
_CLC_DEF _CLC_OVERLOAD RET_TYPE FUNCTION(ARG_TYPE x) { \
return (RET_TYPE)( \
- ( \
+ (RET_TYPE){ \
FUNCTION(x.s0), FUNCTION(x.s1), FUNCTION(x.s2), FUNCTION(x.s3), \
FUNCTION(x.s4), FUNCTION(x.s5), FUNCTION(x.s6), FUNCTION(x.s7) \
- ) != (RET_TYPE)0); \
+ } != (RET_TYPE)0); \
} \
#define _CLC_DEFINE_RELATIONAL_UNARY_VEC16(RET_TYPE, FUNCTION, ARG_TYPE) \
_CLC_DEF _CLC_OVERLOAD RET_TYPE FUNCTION(ARG_TYPE x) { \
return (RET_TYPE)( \
- ( \
+ (RET_TYPE){ \
FUNCTION(x.s0), FUNCTION(x.s1), FUNCTION(x.s2), FUNCTION(x.s3), \
FUNCTION(x.s4), FUNCTION(x.s5), FUNCTION(x.s6), FUNCTION(x.s7), \
FUNCTION(x.s8), FUNCTION(x.s9), FUNCTION(x.sa), FUNCTION(x.sb), \
FUNCTION(x.sc), FUNCTION(x.sd), FUNCTION(x.se), FUNCTION(x.sf) \
- ) != (RET_TYPE)0); \
+ } != (RET_TYPE)0); \
} \
OpenPOWER on IntegriCloud