I was wondering if someone could verify if variables of vector types can be returned from non-kernel functions. In other words, as an example, is the following OpenCL code legal:

int2 foo(int i) {
int2 tmp = (int2)(i);
return tmp;
}

Thank you.

Adam