[LLVMbugs] [Bug 605] NEW: [cbackend] C Type layout doesn't match LLVM type layout on Darwin in all cases
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Fri Jul 22 16:14:08 PDT 2005
http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=605
Summary: [cbackend] C Type layout doesn't match LLVM type layout
on Darwin in all cases
Product: libraries
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P2
Component: Backend: C
AssignedTo: unassignedbugs at nondot.org
ReportedBy: sabre at nondot.org
Because of the funny Darwin structure layout rules, the following testcase is miscompiled by the C
backend:
----
%T = type { double, int }
implementation
%T* %foo(%T* %P) {
%P2 = getelementptr %T* %P, int 1
ret %T* %P2
}
----
It should compile to:
_foo:
addi r3, r3, 12
blr
But the CBE compiles it to:
_foo:
addi r3,r3,16
blr
-Chris
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the llvm-bugs
mailing list