Displaying 2 results from an estimated 2 matches for "simpleconstants".
2007 Oct 02
3
[LLVMdev] Floating point number format in .ll files changed?
...ke
"llvm-as: var.ll:48,0: Floating point constant invalid for type"
for such code:
"@gmFloat = constant float 0.3".
I checked with llvm-gcc and it now generates code for the hexadecimal
floating point representation. The documentation at http://llvm.org/
docs/LangRef.html#simpleconstants still says
"Floating point constants use standard decimal notation (e.g.
123.421), exponential notation (e.g. 1.23421e+2), or a more precise
hexadecimal notation (see below)".
I tried some numbers and llvm-as accepted "1.000000e+00", "1.0", "1."
while...
2007 Oct 02
0
[LLVMdev] Floating point number format in .ll files changed?
...oating point constant invalid for type"
>
> for such code:
>
> "@gmFloat = constant float 0.3".
>
> I checked with llvm-gcc and it now generates code for the hexadecimal
> floating point representation. The documentation at http://llvm.org/
> docs/LangRef.html#simpleconstants still says
>
> "Floating point constants use standard decimal notation (e.g.
> 123.421), exponential notation (e.g. 1.23421e+2), or a more precise
> hexadecimal notation (see below)".
Farther down it says:
"The only time hexadecimal floating point constants are required...