forked from OSchip/llvm-project
[MSP430] Fix data layout string.
Summary: Change data layout string so it would be compatible with MSP430 EABI. Depends on D34561 Reviewers: asl, awygle Reviewed By: asl Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D34562 llvm-svn: 306161
This commit is contained in:
parent
dd73968256
commit
00b396c0a0
|
@ -7503,7 +7503,7 @@ public:
|
||||||
IntPtrType = SignedInt;
|
IntPtrType = SignedInt;
|
||||||
PtrDiffType = SignedInt;
|
PtrDiffType = SignedInt;
|
||||||
SigAtomicType = SignedLong;
|
SigAtomicType = SignedLong;
|
||||||
resetDataLayout("e-m:e-p:16:16-i32:16:32-a:16-n8:16");
|
resetDataLayout("e-m:e-p:16:16-i32:16-i64:16-f32:16-f64:16-a:8-n8:16-S16");
|
||||||
}
|
}
|
||||||
void getTargetDefines(const LangOptions &Opts,
|
void getTargetDefines(const LangOptions &Opts,
|
||||||
MacroBuilder &Builder) const override {
|
MacroBuilder &Builder) const override {
|
||||||
|
|
|
@ -175,7 +175,7 @@
|
||||||
|
|
||||||
// RUN: %clang_cc1 -triple msp430-unknown -o - -emit-llvm %s | \
|
// RUN: %clang_cc1 -triple msp430-unknown -o - -emit-llvm %s | \
|
||||||
// RUN: FileCheck %s -check-prefix=MSP430
|
// RUN: FileCheck %s -check-prefix=MSP430
|
||||||
// MSP430: target datalayout = "e-m:e-p:16:16-i32:16:32-a:16-n8:16"
|
// MSP430: target datalayout = "e-m:e-p:16:16-i32:16-i64:16-f32:16-f64:16-a:8-n8:16-S16"
|
||||||
|
|
||||||
// RUN: %clang_cc1 -triple tce-unknown -o - -emit-llvm %s | \
|
// RUN: %clang_cc1 -triple tce-unknown -o - -emit-llvm %s | \
|
||||||
// RUN: FileCheck %s -check-prefix=TCE
|
// RUN: FileCheck %s -check-prefix=TCE
|
||||||
|
|
Loading…
Reference in New Issue