diff options
author | Akira Hatanaka <ahatanak@gmail.com> | 2011-06-21 01:28:11 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanak@gmail.com> | 2011-06-21 01:28:11 +0000 |
commit | 805569f54aa5ac3ac4c59a008ba68913177b3ce8 (patch) | |
tree | ce0cafdc3a43d8ffc0bb3d75dff0dbf8d8274944 /lib/Target | |
parent | 5f7451ff6e6967553588716d8630ef3bf8e78120 (diff) | |
download | external_llvm-805569f54aa5ac3ac4c59a008ba68913177b3ce8.zip external_llvm-805569f54aa5ac3ac4c59a008ba68913177b3ce8.tar.gz external_llvm-805569f54aa5ac3ac4c59a008ba68913177b3ce8.tar.bz2 |
Add A0 and A1 to the list of registers used for returning a value in order to
handle functions with return type Complex long long.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133497 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/Mips/MipsCallingConv.td | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/Mips/MipsCallingConv.td b/lib/Target/Mips/MipsCallingConv.td index 57aeb1d..876f0fc 100644 --- a/lib/Target/Mips/MipsCallingConv.td +++ b/lib/Target/Mips/MipsCallingConv.td @@ -20,8 +20,8 @@ class CCIfSubtarget<string F, CCAction A>: // Only the return rules are defined here for O32. The rules for argument // passing are defined in MipsISelLowering.cpp. def RetCC_MipsO32 : CallingConv<[ - // i32 are returned in registers V0, V1 - CCIfType<[i32], CCAssignToReg<[V0, V1]>>, + // i32 are returned in registers V0, V1, A0, A1 + CCIfType<[i32], CCAssignToReg<[V0, V1, A0, A1]>>, // f32 are returned in registers F0, F2 CCIfType<[f32], CCAssignToReg<[F0, F2]>>, |