diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2013-01-24 21:47:33 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2013-01-24 21:47:33 +0000 |
commit | 4055cfc46a5beb13d0daeace53ac3fe56a1f4ad1 (patch) | |
tree | 5d35978e03afe307bd9ce64fa9f61e7b65434bb2 /lib/CodeGen | |
parent | dcceacb7f0085346164ac1dfb13f6f559533376b (diff) |
[mips] Do not emit i32 padding if target ABI is O32. This was causing backend
to pass floating point arguments to be passed in integer registers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173375 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/TargetInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index 6803853578..a2e575d3f0 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -4022,7 +4022,8 @@ MipsABIInfo::classifyArgumentType(QualType Ty, uint64_t &Offset) const { if (Ty->isPromotableIntegerType()) return ABIArgInfo::getExtend(); - return ABIArgInfo::getDirect(0, 0, getPaddingType(Align, OrigOffset)); + return ABIArgInfo::getDirect(0, 0, + IsO32 ? 0 : getPaddingType(Align, OrigOffset)); } llvm::Type* |