diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-12-02 16:48:32 -0500 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-12-02 16:48:32 -0500 |
commit | ecaeed511cc78f577ae11c7c3caba61a3ed8b501 (patch) | |
tree | 3290da489695d5e42262a81e4827bb0d4331cfc7 | |
parent | 8d8f1757c190a91e1a45759e88e1395127585abf (diff) |
unaligned reads fixes
-rw-r--r-- | lib/Target/CppBackend/CPPBackend.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index 710ab27df2..1b69ce7ee6 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp @@ -998,7 +998,7 @@ std::string CppWriter::getLoad(std::string Assign, const Value *P, const Type *T } default: assert(0 && "bad 8 store"); } - text += Assign + "HEAPF64[tempDoublePtr>>3]"; + text += sep + Assign + "HEAPF64[tempDoublePtr>>3]"; break; } case 4: { @@ -1010,9 +1010,9 @@ std::string CppWriter::getLoad(std::string Assign, const Value *P, const Type *T break; } case 1: { - text = Assign + "HEAP8[" + PS + "]+" + sep + - "(HEAP8[" + PS + "+1]<<1)+" + sep + - "(HEAP8[" + PS + "+2]<<2)+" + sep + + text = Assign + "HEAP8[" + PS + "]+" + + "(HEAP8[" + PS + "+1]<<1)+" + + "(HEAP8[" + PS + "+2]<<2)+" + "(HEAP8[" + PS + "+3]<<3)"; break; } |