diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-02-12 18:08:31 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-02-12 18:08:31 -0800 |
commit | 08cdac187ad3a109d5e68c771ca2b2d2e23d9e3f (patch) | |
tree | 743e64b1325d81ff6c96d16f45ec9e69855ad22d /lib/Target/JSBackend/JSBackend.cpp | |
parent | bbad4173768d7836818df697396860bdc14d3827 (diff) |
add missing |0s in unaligned accesses
Diffstat (limited to 'lib/Target/JSBackend/JSBackend.cpp')
-rw-r--r-- | lib/Target/JSBackend/JSBackend.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Target/JSBackend/JSBackend.cpp b/lib/Target/JSBackend/JSBackend.cpp index c14796f64f..bef17bd545 100644 --- a/lib/Target/JSBackend/JSBackend.cpp +++ b/lib/Target/JSBackend/JSBackend.cpp @@ -582,13 +582,13 @@ std::string JSWriter::getLoad(const Instruction *I, const Value *P, const Type * } case 1: { text = "HEAP8[tempDoublePtr]=HEAP8[" + PS + "]" + sep + - "HEAP8[tempDoublePtr+1]=HEAP8[" + PS + "+1|0]" + sep + - "HEAP8[tempDoublePtr+2]=HEAP8[" + PS + "+2|0]" + sep + - "HEAP8[tempDoublePtr+3]=HEAP8[" + PS + "+3|0]" + sep + - "HEAP8[tempDoublePtr+4]=HEAP8[" + PS + "+4|0]" + sep + - "HEAP8[tempDoublePtr+5]=HEAP8[" + PS + "+5|0]" + sep + - "HEAP8[tempDoublePtr+6]=HEAP8[" + PS + "+6|0]" + sep + - "HEAP8[tempDoublePtr+7]=HEAP8[" + PS + "+7|0]"; + "HEAP8[tempDoublePtr+1|0]=HEAP8[" + PS + "+1|0]" + sep + + "HEAP8[tempDoublePtr+2|0]=HEAP8[" + PS + "+2|0]" + sep + + "HEAP8[tempDoublePtr+3|0]=HEAP8[" + PS + "+3|0]" + sep + + "HEAP8[tempDoublePtr+4|0]=HEAP8[" + PS + "+4|0]" + sep + + "HEAP8[tempDoublePtr+5|0]=HEAP8[" + PS + "+5|0]" + sep + + "HEAP8[tempDoublePtr+6|0]=HEAP8[" + PS + "+6|0]" + sep + + "HEAP8[tempDoublePtr+7|0]=HEAP8[" + PS + "+7|0]"; break; } default: assert(0 && "bad 8 store"); |