Skip to content

Commit

Permalink
Bug 1294367 - IonMonkey: MIPS: Move as_lui into logical instructions …
Browse files Browse the repository at this point in the history
…section. r=hwj

---
 js/src/jit/mips-shared/Assembler-mips-shared.cpp | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
  • Loading branch information
heiher committed Aug 12, 2016
1 parent 5c8eec8 commit 439f641
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions js/src/jit/mips-shared/Assembler-mips-shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,13 @@ AssemblerMIPSShared::as_xori(Register rd, Register rs, int32_t j)
return writeInst(InstImm(op_xori, rs, rd, Imm16(j)).encode());
}

BufferOffset
AssemblerMIPSShared::as_lui(Register rd, int32_t j)
{
MOZ_ASSERT(Imm16::IsInUnsignedRange(j));
return writeInst(InstImm(op_lui, zero, rd, Imm16(j)).encode());
}

// Branch and jump instructions
BufferOffset
AssemblerMIPSShared::as_bal(BOffImm16 off)
Expand Down Expand Up @@ -566,13 +573,6 @@ AssemblerMIPSShared::as_mul(Register rd, Register rs, Register rt)
return writeInst(InstReg(op_special2, rs, rt, rd, ff_mul).encode());
}

BufferOffset
AssemblerMIPSShared::as_lui(Register rd, int32_t j)
{
MOZ_ASSERT(Imm16::IsInUnsignedRange(j));
return writeInst(InstImm(op_lui, zero, rd, Imm16(j)).encode());
}

// Shift instructions
BufferOffset
AssemblerMIPSShared::as_sll(Register rd, Register rt, uint16_t sa)
Expand Down

0 comments on commit 439f641

Please sign in to comment.