diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-17 23:15:58 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-17 23:15:58 +0000 |
commit | febb8d2b965fb10910ff0f7825cd108aa7967dc3 (patch) | |
tree | 5cafb3dfa80360b29ab83791ee5252fdd7e0e690 /llvm/lib/Target/Mips/MipsTargetMachine.cpp | |
parent | b4b99e545b448fd2c4d9edb361d7ff21f322cdaf (diff) | |
download | bcm5719-llvm-febb8d2b965fb10910ff0f7825cd108aa7967dc3.tar.gz bcm5719-llvm-febb8d2b965fb10910ff0f7825cd108aa7967dc3.zip |
Fix N32 registers and stack alignment.
This patch fixes the "n" and "S" components of the data layout for mips. Clang
already gets this right.
This will be tested in clang.
llvm-svn: 197536
Diffstat (limited to 'llvm/lib/Target/Mips/MipsTargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/MipsTargetMachine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsTargetMachine.cpp b/llvm/lib/Target/Mips/MipsTargetMachine.cpp index 6cf6ae66844..91c9d691081 100644 --- a/llvm/lib/Target/Mips/MipsTargetMachine.cpp +++ b/llvm/lib/Target/Mips/MipsTargetMachine.cpp @@ -65,7 +65,7 @@ static std::string computeDataLayout(const MipsSubtarget &ST) { // 32 bit registers are always available and the stack is at least 64 bit // aligned. On N64 64 bit registers are also available and the stack is // 128 bit aligned. - if (ST.isABI_N64()) + if (ST.isABI_N64() || ST.isABI_N32()) Ret += "-n32:64-S128"; else Ret += "-n32-S64"; |