From 129d23376f0636c75fe658f918e07daf66a58ab2 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 17 Dec 2013 15:40:00 +0000 Subject: [PATCH] The PS3 is a ppc64 and has 64 bit registers. Update DataLayout accordingly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197502 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Basic/Targets.cpp | 3 +-- test/CodeGen/target-data.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index 41c527c556..426ccc09bc 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -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"; } }; diff --git a/test/CodeGen/target-data.c b/test/CodeGen/target-data.c index 46b89befa4..296f7013f1 100644 --- a/test/CodeGen/target-data.c +++ b/test/CodeGen/target-data.c @@ -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 -- 2.40.0