From: Rafael Espindola Date: Tue, 17 Dec 2013 23:30:58 +0000 (+0000) Subject: Add a 's' specifications to AArch64. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a11a957a03d2d3cd16470599a4a05413816efa25;p=clang Add a 's' specifications to AArch64. This has no functionality change as clang adds explicit alignment info for byval arguments. The only difference is that now the clang produced DataLayout string for AArch64 is identical to the LLVM produced one. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197538 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index b1e5d55626..3c7592f6a9 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -3395,9 +3395,7 @@ public: LongDoubleWidth = LongDoubleAlign = 128; PointerWidth = PointerAlign = 64; SuitableAlign = 128; - DescriptionString = "e-" - "i64:64-i128:128-" - "n32:64-S128"; + DescriptionString = "e-i64:64-i128:128-s:32-n32:64-S128"; WCharType = UnsignedInt; LongDoubleFormat = &llvm::APFloat::IEEEquad; diff --git a/test/CodeGen/target-data.c b/test/CodeGen/target-data.c index e54727bf73..5be5a8c3d2 100644 --- a/test/CodeGen/target-data.c +++ b/test/CodeGen/target-data.c @@ -106,7 +106,7 @@ // RUN: %clang_cc1 -triple aarch64-unknown -o - -emit-llvm %s | \ // RUN: FileCheck %s -check-prefix=AARCH64 -// AARCH64: target datalayout = "e-i64:64-i128:128-n32:64-S128" +// AARCH64: target datalayout = "e-i64:64-i128:128-s:32-n32:64-S128" // RUN: %clang_cc1 -triple thumb-unknown-gnueabi -o - -emit-llvm %s | \ // RUN: FileCheck %s -check-prefix=THUMB