Displaying 1 result from an estimated 1 matches for "lowerconstexps".
2007 Jul 15
3
[LLVMdev] Floating point constants (bug?)
...NaN's, infinities, and other special values are represented in their
IEEE hexadecimal format so that assembly and disassembly do not cause
any bits to change in the constants."
When I compile the following simple program with llvm-gcc -O0 -c
--emit-llvm, run it through opt --raiseallocs --lowerconstexps and
llvm-dis, I get a floating point number in hexadecimal that is not one
of the above mentioned special forms.
#include <stdlib.h>
#include <stdio.h>
int main() {
float f = 5.66;
return (int)(f + 1.33);
}
It will emit:
...
store float 0x4016A3D700000000, float* %f
...
Whi...