This patch fixes the PPC calling convention to handle returns of
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Thu, 17 Jan 2013 17:45:19 +0000 (17:45 +0000)
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>
Thu, 17 Jan 2013 17:45:19 +0000 (17:45 +0000)
commit6b2940b01ebc42a0c9069b0e3e5e876f8dc7d868
treef1d85a52876b921570273fa3cfefe50ecf0336ee
parent1d58cdbf4e1737438f0cf94a3d6f827c1b03a39f
This patch fixes the PPC calling convention to handle returns of
_Complex float and _Complex long double, by simply increasing the
number of floating point registers available for return values.

The test case verifies that the correct registers are loaded.

llvm-svn: 172733
llvm/lib/Target/PowerPC/PPCCallingConv.td
llvm/test/CodeGen/PowerPC/complex-return.ll [new file with mode: 0644]