search for: getgfloat

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

Did you mean: getfloat
2014 Jun 18
3
[LLVMdev] Wrong float value stored in LLVM IR code
...iable 2. store new value 3. call a C function which returns the value of the global variable in that same module 4. Compare against the value used in step 2 5. restore the initial value 6. return true or false if the values were equal. /** float gfloat = 3.141592; */ define i32 @test_getgfloat_0() { block_test_getgfloat_0: %0 = load float* @gfloat 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 i3...