diff options
author | Chris Lattner <sabre@nondot.org> | 2010-08-26 18:13:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-08-26 18:13:50 +0000 |
commit | 69e683fb35cacc57255ec0f3e643310e2bbaf70d (patch) | |
tree | d8fb6010f8e49491c0de82f74a745ee83562fd4c /clang/lib/CodeGen | |
parent | f34728a95c7e16dc0f5d6c3bbe184af1a536072c (diff) | |
download | bcm5719-llvm-69e683fb35cacc57255ec0f3e643310e2bbaf70d.tar.gz bcm5719-llvm-69e683fb35cacc57255ec0f3e643310e2bbaf70d.zip |
vector of long and ulong are also classified as INTEGER in x86-64 abi,
this fixes rdar://8358475 a failure of the gcc.dg/compat/vector_1 abi
test.
llvm-svn: 112205
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/TargetInfo.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index 04faaead2ae..958f740bec3 100644 --- a/clang/lib/CodeGen/TargetInfo.cpp +++ b/clang/lib/CodeGen/TargetInfo.cpp @@ -894,7 +894,9 @@ void X86_64ABIInfo::classify(QualType Ty, uint64_t OffsetBase, // gcc passes <1 x long long> as INTEGER. if (VT->getElementType()->isSpecificBuiltinType(BuiltinType::LongLong) || - VT->getElementType()->isSpecificBuiltinType(BuiltinType::ULongLong)) + VT->getElementType()->isSpecificBuiltinType(BuiltinType::ULongLong) || + VT->getElementType()->isSpecificBuiltinType(BuiltinType::Long) || + VT->getElementType()->isSpecificBuiltinType(BuiltinType::ULong)) Current = Integer; else Current = SSE; |