Skip to content

Commit

Permalink
CR fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Cellule committed Feb 28, 2018
1 parent 0dd6cca commit 07b0be8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Backend/amd64/LowererMDArch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1129,6 +1129,8 @@ LowererMDArch::LowerWasmArrayBoundsCheck(IR::Instr * instr, IR::Opnd *addrOpnd)
void
LowererMDArch::LowerAtomicStore(IR::Opnd * dst, IR::Opnd * src1, IR::Instr * insertBeforeInstr)
{
Assert(IRType_IsNativeInt(dst->GetType()));
Assert(IRType_IsNativeInt(src1->GetType()));
IR::RegOpnd* tmpSrc = IR::RegOpnd::New(dst->GetType(), m_func);
Lowerer::InsertMove(tmpSrc, src1, insertBeforeInstr);

Expand All @@ -1140,6 +1142,8 @@ LowererMDArch::LowerAtomicStore(IR::Opnd * dst, IR::Opnd * src1, IR::Instr * ins
void
LowererMDArch::LowerAtomicLoad(IR::Opnd * dst, IR::Opnd * src1, IR::Instr * insertBeforeInstr)
{
Assert(IRType_IsNativeInt(dst->GetType()));
Assert(IRType_IsNativeInt(src1->GetType()));
IR::Instr* newMove = Lowerer::InsertMove(dst, src1, insertBeforeInstr);

#if ENABLE_FAST_ARRAYBUFFER
Expand Down
4 changes: 4 additions & 0 deletions lib/Backend/i386/LowererMDArch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,8 @@ LowererMDArch::LowerWasmArrayBoundsCheck(IR::Instr * instr, IR::Opnd *addrOpnd)
void
LowererMDArch::LowerAtomicStore(IR::Opnd * dst, IR::Opnd * src1, IR::Instr * insertBeforeInstr)
{
Assert(IRType_IsNativeInt(dst->GetType()));
Assert(IRType_IsNativeInt(src1->GetType()));
Func* func = insertBeforeInstr->m_func;

// Move src1 to a register of the same type as dst
Expand Down Expand Up @@ -1002,6 +1004,8 @@ LowererMDArch::LowerAtomicStore(IR::Opnd * dst, IR::Opnd * src1, IR::Instr * ins
void
LowererMDArch::LowerAtomicLoad(IR::Opnd * dst, IR::Opnd * src1, IR::Instr * insertBeforeInstr)
{
Assert(IRType_IsNativeInt(dst->GetType()));
Assert(IRType_IsNativeInt(src1->GetType()));
Func* func = insertBeforeInstr->m_func;

if (src1->IsInt64())
Expand Down

0 comments on commit 07b0be8

Please sign in to comment.