LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 816 - [ppc] _Complex double ABI mismatch
Summary: [ppc] _Complex double ABI mismatch
Status: RESOLVED FIXED
Alias: None
Product: libraries
Classification: Unclassified
Component: Backend: PowerPC (show other bugs)
Version: 1.0
Hardware: Macintosh MacOS X
: P normal
Assignee: Unassigned LLVM Bugs
URL:
Keywords: ABI, miscompilation
Depends on:
Blocks:
 
Reported: 2006-07-05 14:12 PDT by Chris Lattner
Modified: 2008-03-16 21:40 PDT (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Lattner 2006-07-05 14:12:05 PDT
Complex double should be returned in r3/r4/r5/r6.

_Complex double foo() ;
_Complex double X;
void bar() { X = foo(); }

-Chris
Comment 1 Dale Johannesen 2008-03-16 21:40:31 PDT
Fixed here.  (Also _Complex long long and _Complex long double which had similar problems.)
http://llvm.org/viewvc/llvm-project?view=rev&revision=48439
http://llvm.org/viewvc/llvm-project?view=rev&revision=48440