http://llvm.org/bugs/show_bug.cgi?id=21394
Bug ID: 21394
Summary: Miscompiled x86_64 floating-point code at -O2
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 13255
--> http://llvm.org/bugs/attachment.cgi?id=13255&action=edit
Test case
Clang 3.5.0 appears to miscompile the attached program on x86_64 at -O2:
$ clang++ --version
clang version 3.5.0 (tags/RELEASE_350/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
$ clang++ -O2 -o test -lQtCore test.cpp && ./test
QPointF(1, -1)
QPointF(0, -1)
$ clang++ -O1 -o test -lQtCore test.cpp && ./test
QPointF(1, -1)
QPointF(0, 0)
The result with -O1 is the expected output.
The problem does not appear with Clang 3.4.1.
Tested on SUSE Linux Enterprise Server 11 SP3 (x86_64) with Qt 4.6.3 and a
manually built Clang 3.5.0 obtained from the LLVM Download Page.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs