Commit 28bd1181 authored by ivica.bogosavljevic's avatar ivica.bogosavljevic Committed by Commit bot

MIPS64: Add support for DINS to disassembler

BUG=

Review-Url: https://codereview.chromium.org/2331843004
Cr-Commit-Position: refs/heads/master@{#39375}
parent 672d079c
...@@ -1483,6 +1483,10 @@ void Decoder::DecodeTypeRegisterSPECIAL3(Instruction* instr) { ...@@ -1483,6 +1483,10 @@ void Decoder::DecodeTypeRegisterSPECIAL3(Instruction* instr) {
} }
break; break;
} }
case DINS: {
Format(instr, "dins 'rt, 'rs, 'sa, 'ss2");
break;
}
case DBSHFL: { case DBSHFL: {
int sa = instr->SaFieldRaw() >> kSaShift; int sa = instr->SaFieldRaw() >> kSaShift;
switch (sa) { switch (sa) {
......
...@@ -699,6 +699,10 @@ TEST(Type0) { ...@@ -699,6 +699,10 @@ TEST(Type0) {
COMPARE(dsbh(s6, s7), "7c17b0a4 dsbh s6, s7"); COMPARE(dsbh(s6, s7), "7c17b0a4 dsbh s6, s7");
COMPARE(dsbh(v0, v1), "7c0310a4 dsbh v0, v1"); COMPARE(dsbh(v0, v1), "7c0310a4 dsbh v0, v1");
COMPARE(dins_(a0, a1, 31, 1), "7ca4ffc7 dins a0, a1, 31, 1");
COMPARE(dins_(s6, s7, 30, 2), "7ef6ff87 dins s6, s7, 30, 2");
COMPARE(dins_(v0, v1, 0, 32), "7c62f807 dins v0, v1, 0, 32");
COMPARE(dshd(a0, a1), "7c052164 dshd a0, a1"); COMPARE(dshd(a0, a1), "7c052164 dshd a0, a1");
COMPARE(dshd(s6, s7), "7c17b164 dshd s6, s7"); COMPARE(dshd(s6, s7), "7c17b164 dshd s6, s7");
COMPARE(dshd(v0, v1), "7c031164 dshd v0, v1"); COMPARE(dshd(v0, v1), "7c031164 dshd v0, v1");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment