[LLVMdev] Vector cast
nicolas at capens.net
Sat Jun 21 16:24:42 PDT 2008
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev