Index: src/mips/assembler-mips.cc |
diff --git a/src/mips/assembler-mips.cc b/src/mips/assembler-mips.cc |
index 8e873c8f0a839b979f175a50b9566f432014637b..65fc46cc67737d02d07b9c42ad23b3aed1088001 100644 |
--- a/src/mips/assembler-mips.cc |
+++ b/src/mips/assembler-mips.cc |
@@ -1829,11 +1829,17 @@ void Assembler::lw(Register rd, const MemOperand& rs) { |
void Assembler::lwl(Register rd, const MemOperand& rs) { |
+ DCHECK(is_int16(rs.offset_)); |
+ DCHECK(IsMipsArchVariant(kLoongson) || IsMipsArchVariant(kMips32r1) || |
+ IsMipsArchVariant(kMips32r2)); |
GenInstrImmediate(LWL, rs.rm(), rd, rs.offset_); |
} |
void Assembler::lwr(Register rd, const MemOperand& rs) { |
+ DCHECK(is_int16(rs.offset_)); |
+ DCHECK(IsMipsArchVariant(kLoongson) || IsMipsArchVariant(kMips32r1) || |
+ IsMipsArchVariant(kMips32r2)); |
GenInstrImmediate(LWR, rs.rm(), rd, rs.offset_); |
} |
@@ -1869,11 +1875,17 @@ void Assembler::sw(Register rd, const MemOperand& rs) { |
void Assembler::swl(Register rd, const MemOperand& rs) { |
+ DCHECK(is_int16(rs.offset_)); |
+ DCHECK(IsMipsArchVariant(kLoongson) || IsMipsArchVariant(kMips32r1) || |
+ IsMipsArchVariant(kMips32r2)); |
GenInstrImmediate(SWL, rs.rm(), rd, rs.offset_); |
} |
void Assembler::swr(Register rd, const MemOperand& rs) { |
+ DCHECK(is_int16(rs.offset_)); |
+ DCHECK(IsMipsArchVariant(kLoongson) || IsMipsArchVariant(kMips32r1) || |
+ IsMipsArchVariant(kMips32r2)); |
GenInstrImmediate(SWR, rs.rm(), rd, rs.offset_); |
} |