Displaying 1 result from an estimated 1 matches for "typesoftenfloat".
2013 Jul 30
1
[LLVMdev] using f32 in a 64bit integer only architecture
...(no hardware floating point support)
and I am triggering a 'Promote may not follow Expand or Promote' assertion failure.
(TargetLowering.h : getTypeConversion)
When I look into it, I see that the conversion fails because llvm tries to convert a 'f32'
into a 'i32' through a TypeSoftenFloat.
As i32 needs promotion to i64, this assertion is triggered.
The other way around: a 32bit architecture (only i32 is valid) with doubles (f64)
seems to work just fine. So, it seems that a 'TypeSoftenFloat' followed by an 'Expand' is valid (f64->i64->i32)
Note:
- this is f...