r197577 - Add -f64:32:64 to the darwin ppc32 DataLayout.
Rafael Espindola
rafael.espindola at gmail.com
Wed Dec 18 07:16:50 PST 2013
Author: rafael
Date: Wed Dec 18 09:16:50 2013
New Revision: 197577
URL: http://llvm.org/viewvc/llvm-project?rev=197577&view=rev
Log:
Add -f64:32:64 to the darwin ppc32 DataLayout.
A f64 inside a struct can be 32 bit aligned on darwin.
Modified:
cfe/trunk/lib/Basic/Targets.cpp
cfe/trunk/test/CodeGen/target-data.c
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=197577&r1=197576&r2=197577&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Wed Dec 18 09:16:50 2013
@@ -1251,8 +1251,7 @@ public:
PtrDiffType = SignedInt; // for http://llvm.org/bugs/show_bug.cgi?id=15726
LongLongAlign = 32;
SuitableAlign = 128;
- DescriptionString = "E-p:32:32"
- "-n32";
+ DescriptionString = "E-p:32:32-f64:32:64-n32";
}
virtual BuiltinVaListKind getBuiltinVaListKind() const {
return TargetInfo::CharPtrBuiltinVaList;
@@ -1266,8 +1265,7 @@ public:
: DarwinTargetInfo<PPC64TargetInfo>(Triple) {
HasAlignMac68kSupport = true;
SuitableAlign = 128;
- DescriptionString = "E-"
- "i64:64-n32:64";
+ DescriptionString = "E-i64:64-n32:64";
}
};
} // end anonymous namespace.
Modified: cfe/trunk/test/CodeGen/target-data.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/target-data.c?rev=197577&r1=197576&r2=197577&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/target-data.c (original)
+++ cfe/trunk/test/CodeGen/target-data.c Wed Dec 18 09:16:50 2013
@@ -88,7 +88,7 @@
// RUN: %clang_cc1 -triple powerpc-darwin -o - -emit-llvm %s | \
// RUN: FileCheck %s -check-prefix=PPC32-DARWIN
-// PPC32-DARWIN: target datalayout = "E-p:32:32-n32"
+// PPC32-DARWIN: target datalayout = "E-p:32:32-f64:32:64-n32"
// RUN: %clang_cc1 -triple powerpc64-darwin -o - -emit-llvm %s | \
// RUN: FileCheck %s -check-prefix=PPC64-DARWIN
More information about the cfe-commits
mailing list