Index: src/mips64/assembler-mips64.cc |
diff --git a/src/mips64/assembler-mips64.cc b/src/mips64/assembler-mips64.cc |
index 69bd299ddc313e7eb8704a234b89eaa3030961f6..4c8465a1f8e3da46ea3e19cf4ebfeb20e9c533a9 100644 |
--- a/src/mips64/assembler-mips64.cc |
+++ b/src/mips64/assembler-mips64.cc |
@@ -2312,6 +2312,14 @@ void Assembler::ins_(Register rt, Register rs, uint16_t pos, uint16_t size) { |
} |
+void Assembler::dins_(Register rt, Register rs, uint16_t pos, uint16_t size) { |
+ // Should be called via MacroAssembler::Dins. |
+ // Dext instr has 'rt' field as dest, and two uint5: msb, lsb. |
+ DCHECK(kArchVariant == kMips64r2 || kArchVariant == kMips64r6); |
+ GenInstrRegister(SPECIAL3, rs, rt, pos + size - 1, pos, DINS); |
+} |
+ |
+ |
void Assembler::ext_(Register rt, Register rs, uint16_t pos, uint16_t size) { |
// Should be called via MacroAssembler::Ext. |
// Ext instr has 'rt' field as dest, and two uint5: msb, lsb. |
@@ -2321,7 +2329,7 @@ void Assembler::ext_(Register rt, Register rs, uint16_t pos, uint16_t size) { |
void Assembler::dext_(Register rt, Register rs, uint16_t pos, uint16_t size) { |
- // Should be called via MacroAssembler::Ext. |
+ // Should be called via MacroAssembler::Dext. |
// Dext instr has 'rt' field as dest, and two uint5: msb, lsb. |
DCHECK(kArchVariant == kMips64r2 || kArchVariant == kMips64r6); |
GenInstrRegister(SPECIAL3, rs, rt, size - 1, pos, DEXT); |