summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCCallingConv.td
diff options
context:
space:
mode:
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>2013-01-17 17:45:19 +0000
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>2013-01-17 17:45:19 +0000
commit6b2940b01ebc42a0c9069b0e3e5e876f8dc7d868 (patch)
treef1d85a52876b921570273fa3cfefe50ecf0336ee /llvm/lib/Target/PowerPC/PPCCallingConv.td
parent1d58cdbf4e1737438f0cf94a3d6f827c1b03a39f (diff)
downloadbcm5719-llvm-6b2940b01ebc42a0c9069b0e3e5e876f8dc7d868.tar.gz
bcm5719-llvm-6b2940b01ebc42a0c9069b0e3e5e876f8dc7d868.zip
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
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCCallingConv.td')
-rw-r--r--llvm/lib/Target/PowerPC/PPCCallingConv.td4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCCallingConv.td b/llvm/lib/Target/PowerPC/PPCCallingConv.td
index 3f87e883b1e..120e049f053 100644
--- a/llvm/lib/Target/PowerPC/PPCCallingConv.td
+++ b/llvm/lib/Target/PowerPC/PPCCallingConv.td
@@ -28,8 +28,8 @@ def RetCC_PPC : CallingConv<[
CCIfType<[i32], CCAssignToReg<[R3, R4, R5, R6, R7, R8, R9, R10]>>,
CCIfType<[i64], CCAssignToReg<[X3, X4, X5, X6]>>,
- CCIfType<[f32], CCAssignToReg<[F1]>>,
- CCIfType<[f64], CCAssignToReg<[F1, F2]>>,
+ CCIfType<[f32], CCAssignToReg<[F1, F2]>>,
+ CCIfType<[f64], CCAssignToReg<[F1, F2, F3, F4]>>,
// Vector types are always returned in V2.
CCIfType<[v16i8, v8i16, v4i32, v4f32], CCAssignToReg<[V2]>>
OpenPOWER on IntegriCloud