LLVM Has Opinions on Float Constants
The following results in an error while compiling the LLVM code (with default pass pipeline on main):
#[entry]
fn test(x: f32) -> f32 {
return x + 0.3;
}
The line clang has problems with is
%v3 = bitcast float 0.3 to float
with error floating point constant invalid for type
.