Index: src/mips64/disasm-mips64.cc |
diff --git a/src/mips64/disasm-mips64.cc b/src/mips64/disasm-mips64.cc |
index 3d0e10c20a586372e4fb6b2b147ab6ae56e8b8a5..46bba07537b61d9571b053c0f02c755d7d415cee 100644 |
--- a/src/mips64/disasm-mips64.cc |
+++ b/src/mips64/disasm-mips64.cc |
@@ -1162,26 +1162,22 @@ void Decoder::DecodeTypeRegisterSPECIAL(Instruction* instr) { |
if (instr->RsValue() == 0) { |
Format(instr, "srl 'rd, 'rt, 'sa"); |
} else { |
- if (kArchVariant == kMips64r2) { |
- Format(instr, "rotr 'rd, 'rt, 'sa"); |
- } else { |
- Unknown(instr); |
- } |
+ Format(instr, "rotr 'rd, 'rt, 'sa"); |
} |
break; |
case DSRL: |
if (instr->RsValue() == 0) { |
Format(instr, "dsrl 'rd, 'rt, 'sa"); |
} else { |
- if (kArchVariant == kMips64r2) { |
- Format(instr, "drotr 'rd, 'rt, 'sa"); |
- } else { |
- Unknown(instr); |
- } |
+ Format(instr, "drotr 'rd, 'rt, 'sa"); |
} |
break; |
case DSRL32: |
Ilija.Pavlovic1
2016/04/12 12:31:31
Missing test cases in test-disassembler-mips64.cc
Marija Antic
2016/04/12 12:59:16
Done.
|
- Format(instr, "dsrl32 'rd, 'rt, 'sa"); |
+ if (instr->RsValue() == 0) { |
+ Format(instr, "dsrl32 'rd, 'rt, 'sa"); |
+ } else { |
+ Format(instr, "drotr32 'rd, 'rt, 'sa"); |
+ } |
balazs.kilvady
2016/04/12 10:18:00
Have you checked the diasm output? Are the number
Marija Antic
2016/04/12 12:59:16
Done.
|
break; |
case SRA: |
Format(instr, "sra 'rd, 'rt, 'sa"); |
@@ -1202,22 +1198,14 @@ void Decoder::DecodeTypeRegisterSPECIAL(Instruction* instr) { |
if (instr->SaValue() == 0) { |
Format(instr, "srlv 'rd, 'rt, 'rs"); |
} else { |
- if (kArchVariant == kMips64r2) { |
- Format(instr, "rotrv 'rd, 'rt, 'rs"); |
- } else { |
- Unknown(instr); |
- } |
+ Format(instr, "rotrv 'rd, 'rt, 'rs"); |
} |
break; |
case DSRLV: |
if (instr->SaValue() == 0) { |
Format(instr, "dsrlv 'rd, 'rt, 'rs"); |
} else { |
- if (kArchVariant == kMips64r2) { |
- Format(instr, "drotrv 'rd, 'rt, 'rs"); |
- } else { |
- Unknown(instr); |
- } |
+ Format(instr, "drotrv 'rd, 'rt, 'rs"); |
} |
break; |
case SRAV: |