I have a mlir function to cast i32 to f32.
module {
func.func @forward() -> f32{
%0 = arith.constant 1 : i32
%3 = arith.bitcast %0 : i32 to f32
return %3 : f32
}
}
But I get the value of %3 is 1.4013e-45. It should be 1. Is arith.bitcast only copy byte? How can I get a right value? Thank for your help.