[vector] Vector cast support
paul.sandoz at oracle.com
Mon Apr 30 22:49:51 UTC 2018
Java bits look good.
> On Apr 27, 2018, at 3:36 PM, Lupusoru, Razvan A <razvan.a.lupusoru at intel.com> wrote:
> Hi everyone,
> I have implemented casts for almost all of the types (with limitations noted below). Since casts do not necessarily preserve the same number of elements, the implementation is actually done by using a mix of resize (previous functionality) and cast which retain same number of elements. I am happy also to report that the testing helped me find a lot of problems during the development of this - so I am glad they are so thorough.
> There are two limitations right now:
> - Long casts to FP are only supported with AVX512
> - FP casts to integral types are not supported due to the complex logic needed for fixup
I guess this is one of those places where we are better off focusing on optimizing, if need be, the scalar loop over the vector elements?
> Let me know if you have any comments.
More information about the panama-dev