[LLVMdev] Vector cast

Nicolas Capens nicolas at capens.net
Sat Jun 21 16:24:42 PDT 2008


Hi all,

 

I seem to be unable to cast a vector of integers to a vector of floats
(uitofp [4 x i8] to [4 x float], to be exact). It hits an assert in
LegalizeDAG.cpp line 5433: "Unknown int value type". The Assembly Language
Reference Manual's definition of uitofp doesn't indicate that this is
unsupported, so it looks like a bug to me. I'm on an x86 system by the way.

 

My current workaround is to extract, cast, and insert elements individually,
but if LLVM would support (faster) SIMD casts that would be awesome.

 

Kind regards,

 

Nicolas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080622/a78d64a7/attachment.html>


More information about the llvm-dev mailing list