Displaying 1 result from an estimated 1 matches for "block_test_getdouble_0".
2014 Jun 18
3
[LLVMdev] Wrong float value stored in LLVM IR code
...921FB00000000, float* @gfloat // wrong value stored
%1 = call float @getgfloat()
%2 = fcmp oeq float %1, 0x400921FA00000000 // wrong value stored
%3 = zext i1 %2 to i32
store float %0, float* @gfloat
ret i32 %3
}
/**
double gdouble = 2.52340;
*/
define i32 @test_getdouble_0() {
block_test_getdouble_0:
%0 = load double* @gdouble
store double 2.523400e+00, double* @gdouble // correct value stored
%1 = call double @getdouble()
%2 = fcmp oeq double %1, 2.523400e+00 // correct value stored
%3 = zext i1 %2 to i32
store double %0, double* @gdouble
ret i32 %3
}
Do you have any ide...