Displaying 2 results from an estimated 2 matches for "tan_bug".
Did you mean:
main_bug
2007 Jun 16
0
[LLVMdev] Wrong tan
...Output:
tan float: 0.309336
tan double: 0.309336
Works.
4. opt + llc + as + g++
Output:
tan float: 0.309336
tan double: 0.309336
Works
5. opt + llc + as + llvm-g++
Output:
tan float: 0
tan double: 0
????
In summary: Everything works except linking with llvm-g++!
Gonsolo
Appendix A:
<tan_bug.cc>
#include <iostream>
#include <cmath>
int main()
{
float a = 0.3;
double b = 0.3;
float result_a = std::tan( a );
float result_b = std::tan( b );
std::cout << "tan float: " << result_a << std::endl;
std:...
2007 Jun 16
2
[LLVMdev] Wrong tan
On Jun 16, 2007, at 12:35 AM, Duncan Sands wrote:
>> Result compiled with llvm-g++ 2.0:
>> tan float: -2.18504
>> tan double: 0.309336
>
> This may be due to bug 1505.
It fails on x86 using x87 floating point, with the inliner not run,
because of 1505, yes. Gonsolo, is that your situation?
(What happens is, there is a wrapper in the header file for std::tan
(float),