[LLVMbugs] [Bug 17988] New: incorrect floating point results
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Nov 18 21:31:42 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=17988
Bug ID: 17988
Summary: incorrect floating point results
Product: clang
Version: unspecified
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: m.pavanakumar at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 11566
--> http://llvm.org/bugs/attachment.cgi?id=11566&action=edit
Extract and type ./compile to compile the code ... Creates executable testBug
Attaching a piece of C++ code which gives wrong floating point result with
clang++. But gives correct results in the following compilers (tested)
1) g++ >= 4.2 and 2) icpc > 11.0
Expected output
===============
Flux = 0.57735 0.989578 0.412228 0.412228 1.73147
Actual output from clang
=========================
Flux = 0.508632 0.797979 0.383204 0.383204 1.20769
This bug is reproducible in clang shipped with Xcode 5.0 on OSX Maverics and
clang 3.1-svn. valgrind shows no errors and using -O0 does not help either.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131119/85380743/attachment.html>
More information about the llvm-bugs
mailing list