r197502 - The PS3 is a ppc64 and has 64 bit registers. Update DataLayout accordingly.
Rafael Espindola
rafael.espindola at gmail.com
Tue Dec 17 07:40:01 PST 2013
Author: rafael
Date: Tue Dec 17 09:40:00 2013
New Revision: 197502
URL: http://llvm.org/viewvc/llvm-project?rev=197502&view=rev
Log:
The PS3 is a ppc64 and has 64 bit registers. Update DataLayout accordingly.
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=197502&r1=197501&r2=197502&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Tue Dec 17 09:40:00 2013
@@ -485,8 +485,7 @@ public:
this->UIntMaxType = TargetInfo::UnsignedLongLong;
this->Int64Type = TargetInfo::SignedLongLong;
this->SizeType = TargetInfo::UnsignedInt;
- this->DescriptionString = "E-p:32:32-"
- "i64:64-n32";
+ this->DescriptionString = "E-p:32:32-i64:64-n32:64";
}
};
Modified: cfe/trunk/test/CodeGen/target-data.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/target-data.c?rev=197502&r1=197501&r2=197502&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/target-data.c (original)
+++ cfe/trunk/test/CodeGen/target-data.c Tue Dec 17 09:40:00 2013
@@ -56,7 +56,7 @@
// RUN: %clang_cc1 -triple powerpc64-lv2 -o - -emit-llvm %s | \
// RUN: FileCheck %s -check-prefix=PS3
-// PS3: target datalayout = "E-p:32:32-i64:64-n32"
+// PS3: target datalayout = "E-p:32:32-i64:64-n32:64"
// RUN: %clang_cc1 -triple i686-nacl -o - -emit-llvm %s | \
// RUN: FileCheck %s -check-prefix=NACL
More information about the cfe-commits
mailing list