[LLVMdev] Wrong tan
Dale Johannesen
dalej at apple.com
Sat Jun 16 13:19:19 PDT 2007
On Jun 16, 2007, at 12:52 PM, Gonsolo wrote:
> Hi!
>
> Dale Johannesen schrieb:
>>
>> 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?
>>
>
> I tried a simple "llvm-g++ -o simple tan.bug.cc"
> Output:
> tan float: -2.18504
> tan double: 0.309336
Thanks, but what I'm trying to get at is, what kind of machine are
you running on?
If x86, are you set up to use x87 or SSE for floating point? (You
can tell by
compiling with -save-temps and looking at the .s file. If you see
any references
to %xmm registers, that's SSE.)
More information about the llvm-dev
mailing list