[WebAssembly] Add -m:e to the target triple.

llvm-svn: 257021
This commit is contained in:
Dan Gohman 2016-01-07 03:20:15 +00:00
parent 0c6f5ac50a
commit 0d75f2c538
2 changed files with 4 additions and 4 deletions

View File

@ -7281,7 +7281,7 @@ public:
explicit WebAssembly32TargetInfo(const llvm::Triple &T)
: WebAssemblyTargetInfo(T) {
MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 32;
DataLayoutString = "e-p:32:32-i64:64-n32:64-S128";
DataLayoutString = "e-m:e-p:32:32-i64:64-n32:64-S128";
}
protected:
@ -7299,7 +7299,7 @@ public:
LongAlign = LongWidth = 64;
PointerAlign = PointerWidth = 64;
MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 64;
DataLayoutString = "e-p:64:64-i64:64-n32:64-S128";
DataLayoutString = "e-m:e-p:64:64-i64:64-n32:64-S128";
}
protected:

View File

@ -80,11 +80,11 @@
// RUN: %clang_cc1 -triple wasm32-unknown-unknown -o - -emit-llvm %s | \
// RUN: FileCheck %s -check-prefix=WEBASSEMBLY32
// WEBASSEMBLY32: target datalayout = "e-p:32:32-i64:64-n32:64-S128"
// WEBASSEMBLY32: target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
// RUN: %clang_cc1 -triple wasm64-unknown-unknown -o - -emit-llvm %s | \
// RUN: FileCheck %s -check-prefix=WEBASSEMBLY64
// WEBASSEMBLY64: target datalayout = "e-p:64:64-i64:64-n32:64-S128"
// WEBASSEMBLY64: target datalayout = "e-m:e-p:64:64-i64:64-n32:64-S128"
// RUN: %clang_cc1 -triple powerpc-unknown -o - -emit-llvm %s | \
// RUN: FileCheck %s -check-prefix=PPC