[LLVMbugs] [Bug 9416] New: [Boost regression] Miscompile with private constant array
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Mar 6 14:14:25 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=9416
Summary: [Boost regression] Miscompile with private constant
array
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: dgregor at apple.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6283)
--> (http://llvm.org/bugs/attachment.cgi?id=6283)
Example C++ source
With the given example file (t.cpp), the std::copy instantiation appears to be
miscompiled when built with Clang for x86-64. The LLVM IR looks reasonable, in
the resulting assembly the std::copy caller pushes the [first, last) arguments
into [%rdi, %rsi) but the callee seems to pick them up as [%rsi, %di). At
least, the subtraction looks backwards (?). The net effect is that the loop
inside std::copy is never executed.
(More attachments and comments coming)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list