llvm-project/clang/test/SemaOpenCL
Tobias Grosser 766bcc27dc In OpenCL, conversions between different vector types are disallowed
OpenCL 6.2.1 says: "Implicit conversions between built-in vector data types are
disallowed."  OpenCL 6.2.2 says: "Explicit casts between vector types are not
legal."  For example:

uint4 u = (uint4)(1);
int4 i = u; // invalid implicit conversion
int4 e = (int4)u; // invalid explicit conversion

Fixes PR10967. Submitted by: Anton Lokhmotov <Anton.lokhmotov@gmail.com>

llvm-svn: 140300
2011-09-22 13:03:14 +00:00
..
cond.cl
extension-fp64.cl OpenCL: if double precision floating point constant encountered 2011-03-11 19:24:59 +00:00
init.cl
local.cl OpenCL: introduce support for function scope __local variables 2011-09-19 21:14:35 +00:00
vec_step.cl Add support for the OpenCL vec_step operator, by generalising and 2011-03-11 19:24:49 +00:00
vector_conv_invalid.cl In OpenCL, conversions between different vector types are disallowed 2011-09-22 13:03:14 +00:00
vector_literals_invalid.cl In the OpenCL mode, the AltiVec mode must be off and checks must be strict 2011-09-21 18:28:29 +00:00