search for: test_getdouble_0

Displaying 1 result from an estimated 1 matches for "test_getdouble_0".

2014 Jun 18
3
[LLVMdev] Wrong float value stored in LLVM IR code
...store float 0x400921FB00000000, 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 i3...