[RISCV] Fix 64-bit data layout mismatch between backend and target description

Reviewers: asb

Reviewed By: asb

Subscribers: rbar, johnrusso, simoncook, jordy.potman.lists, llvm-commits

Differential Revision: https://reviews.llvm.org/D40145

llvm-svn: 318454
This commit is contained in:
Mandeep Singh Grang 2017-11-16 20:30:49 +00:00
parent dc3c9eb0cf
commit 47fbc5911d
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ extern "C" void LLVMInitializeRISCVTarget() {
static std::string computeDataLayout(const Triple &TT) {
if (TT.isArch64Bit()) {
return "e-m:e-i64:64-n32:64-S128";
return "e-m:e-p:64:64-i64:64-i128:128-n64-S128";
} else {
assert(TT.isArch32Bit() && "only RV32 and RV64 are currently supported");
return "e-m:e-p:32:32-i64:64-n32-S128";