]> granicus.if.org Git - clang/commitdiff
The PS3 is a ppc64 and has 64 bit registers. Update DataLayout accordingly.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 17 Dec 2013 15:40:00 +0000 (15:40 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 17 Dec 2013 15:40:00 +0000 (15:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197502 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp
test/CodeGen/target-data.c

index 41c527c55646e2cd6a55326408efd882effd0138..426ccc09bce21ef92fe6eed7047e3a59a56a7ba5 100644 (file)
@@ -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";
   }
 };
 
index 46b89befa49224787375aa0bf58847a6e9c3a8cd..296f7013f199214721bd9390b52d758485f40323 100644 (file)
@@ -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