[LLVMdev] Question about "VectorLegalizer::ExpandUINT_TO_FLOAT".
JinGu Kang
jingu at codeplay.com
Mon Oct 20 04:37:31 PDT 2014
Hi all,
I have a question about "VectorLegalizer::ExpandUINT_TO_FLOAT" function.
I have code snippet on DAG as follows.
0x7a351a8: v4i32 = insert_vector_elt 0x7a350a0, 0x7a34f00, 0x7a34198
[ORD=7] [ID=-3]
0x7a353b8: v4f16 = uint_to_fp 0x7a351a8 [ORD=8] [ID=-3]
Can "VectorLegalizer::ExpandUINT_TO_FLOAT" function handle above case?
The problem I have faced is "SDValue TWOHW" gets "Infinity" number
because it is overflow and then "SDValue fHI" is set to "Nan" from fmul.
Is it correct? If I miss something, please let me know.
Thanks,
JinGu Kang
More information about the llvm-dev
mailing list