forked from OSchip/llvm-project
[WebAssembly] Add -m:e to the target triple.
llvm-svn: 257021
This commit is contained in:
parent
0c6f5ac50a
commit
0d75f2c538
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue