r197651 - On spacv8 f128 is only aligned to 64 bits.
Rafael Espindola
rafael.espindola at gmail.com
Wed Dec 18 19:03:04 PST 2013
Author: rafael
Date: Wed Dec 18 21:03:04 2013
New Revision: 197651
URL: http://llvm.org/viewvc/llvm-project?rev=197651&view=rev
Log:
On spacv8 f128 is only aligned to 64 bits.
LLVM already got this right.
Found on "Figure 3-1: Scalar Types" on http://sparc.com/standards/psABI3rd.pdf.
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=197651&r1=197650&r2=197651&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Wed Dec 18 21:03:04 2013
@@ -4506,9 +4506,7 @@ void SparcTargetInfo::getGCCRegAliases(c
class SparcV8TargetInfo : public SparcTargetInfo {
public:
SparcV8TargetInfo(const llvm::Triple &Triple) : SparcTargetInfo(Triple) {
- // FIXME: Support Sparc quad-precision long double?
- DescriptionString = "E-p:32:32-"
- "i64:64-n32-S64";
+ DescriptionString = "E-p:32:32-i64:64-f128:64-n32-S64";
}
virtual void getTargetDefines(const LangOptions &Opts,
Modified: cfe/trunk/test/CodeGen/target-data.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/target-data.c?rev=197651&r1=197650&r2=197651&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/target-data.c (original)
+++ cfe/trunk/test/CodeGen/target-data.c Wed Dec 18 21:03:04 2013
@@ -24,7 +24,7 @@
// RUN: %clang_cc1 -triple sparc-sun-solaris -emit-llvm -o - %s | \
// RUN: FileCheck %s --check-prefix=SPARC-V8
-// SPARC-V8: target datalayout = "E-p:32:32-i64:64-n32-S64"
+// SPARC-V8: target datalayout = "E-p:32:32-i64:64-f128:64-n32-S64"
// RUN: %clang_cc1 -triple sparcv9-sun-solaris -emit-llvm -o - %s | \
// RUN: FileCheck %s --check-prefix=SPARC-V9
More information about the cfe-commits
mailing list