<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I realize there is already some patches to the mailing list regarding vecstep, astype, etc. I realize some discussion will need to be had to determine which is the right approach. I need to get caught up on the emails, but thought I would send this patch to the list first.</div><div><br></div><div>The attached patch adds support for builtins for astype, convert, and vec_step. I chose to group these together because they require very similar code modifications. I've included test cases for each.</div><div><br></div><div>Please consult the OpenCL spec for a full description but here is a brief summary of each:</div><div><br></div><div><b>__builtin_astype(): </b>Used to reinterpreted as another data type of the same size using for both scalar and vector data types.</div><div><b>__builtin_vec_step(): </b>The vec_step built-in function takes a built-in scalar or vector data type argument and returns an integer value representing the number of elements in the scalar or vector.</div><div><b>__builtin_convert()</b>: provides a way to perform scalar and vector conversions with rounding and saturation.</div><div><br></div><div>Please review.</div><div><br></div><div></div></body></html>