search for: real_valu

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

Did you mean: real_value
2014 Jun 18
3
[LLVMdev] Wrong float value stored in LLVM IR code
...an issue I haven't been able to figure out. The problem I'm having is that the wrong float is being stored in a float global variable. The code snippet I use to generate the float value is as follow: llvm::Type* type = // initialize with the global variable type; std::string real_value = // initialized with the float value from std input. ... return ConstantFP::get(type,real_value); I am using the code snippet above to store a float and double value, the double value works, the float value not. This can be seen with the following LLVM IR I am generating: What the...