search for: charvectofloatvec

Displaying 2 results from an estimated 2 matches for "charvectofloatvec".

2008 Jun 22
0
[LLVMdev] Vector cast
...supported, I think, but that sort of thing isn't reliable at the moment. AFAIK, baldrick is working on a replacement for LegalizeDAG that should handle that sort of thing better. In the meantime, the following should perform the operation you want efficiently on X86: define <4 x float> @charvectofloatvec(i32) nounwind { insertelement <4 x i32> undef, i32 %0, i32 0 bitcast <4 x i32> %2 to <16 x i8> shufflevector <16 x i8> %3, <16 x i8> zeroinitializer, <16 x i32> <i32 0, i32 16, i32 1, i32 17, i32 2, i32 18, i32 3, i32 19, i32 4, i32 20, i32 5, i32 21, i32 6, i...
2008 Jun 21
3
[LLVMdev] Vector cast
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