Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(821)

Unified Diff: src/mips64/disasm-mips64.cc

Issue 2069933003: Implement byte swapping instructions on MIPS32 and MIPS64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix tests Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/mips64/constants-mips64.h ('k') | src/mips64/macro-assembler-mips64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mips64/disasm-mips64.cc
diff --git a/src/mips64/disasm-mips64.cc b/src/mips64/disasm-mips64.cc
index 807cc0c0685a78f34ebf934b5cfb558a5b9a9583..1917526c4220b9b7953a51a3862047eef8408e8e 100644
--- a/src/mips64/disasm-mips64.cc
+++ b/src/mips64/disasm-mips64.cc
@@ -1457,11 +1457,18 @@ void Decoder::DecodeTypeRegisterSPECIAL3(Instruction* instr) {
Format(instr, "bitswap 'rd, 'rt");
break;
}
- case SEB:
- case SEH:
- case WSBH:
- UNREACHABLE();
+ case SEB: {
+ Format(instr, "seb 'rd, 'rt");
break;
+ }
+ case SEH: {
+ Format(instr, "seh 'rd, 'rt");
+ break;
+ }
+ case WSBH: {
+ Format(instr, "wsbh 'rd, 'rt");
+ break;
+ }
default: {
sa >>= kBp2Bits;
switch (sa) {
@@ -1492,10 +1499,14 @@ void Decoder::DecodeTypeRegisterSPECIAL3(Instruction* instr) {
}
break;
}
- case DSBH:
- case DSHD:
- UNREACHABLE();
+ case DSBH: {
+ Format(instr, "dsbh 'rd, 'rt");
+ break;
+ }
+ case DSHD: {
+ Format(instr, "dshd 'rd, 'rt");
break;
+ }
default: {
sa >>= kBp3Bits;
switch (sa) {
« no previous file with comments | « src/mips64/constants-mips64.h ('k') | src/mips64/macro-assembler-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698