hanchenye-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
init.cl
local.cl
vec_step.cl
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