forked from OSchip/llvm-project
[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:
parent
dc3c9eb0cf
commit
47fbc5911d
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue