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

Unified Diff: src/compiler/s390/code-generator-s390.cc

Issue 2045943002: [compiler] [wasm] Introduce Word32/64ReverseBytes as TF Optional Opcode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix according to titzer Created 4 years, 5 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/compiler/ppc/instruction-selector-ppc.cc ('k') | src/compiler/s390/instruction-codes-s390.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/s390/code-generator-s390.cc
diff --git a/src/compiler/s390/code-generator-s390.cc b/src/compiler/s390/code-generator-s390.cc
index 30f49a7271120d596ad75fe964f53f868e1b4f40..5957e0219fa1991d6104feb0a7f5698fe7ae0ba0 100644
--- a/src/compiler/s390/code-generator-s390.cc
+++ b/src/compiler/s390/code-generator-s390.cc
@@ -1843,6 +1843,25 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction(
case kS390_LoadWordS32:
ASSEMBLE_LOAD_INTEGER(LoadW);
break;
+ case kS390_LoadReverse16:
+ ASSEMBLE_LOAD_INTEGER(lrvh);
+ break;
+ case kS390_LoadReverse32:
+ ASSEMBLE_LOAD_INTEGER(lrv);
+ break;
+ case kS390_LoadReverse64:
+ ASSEMBLE_LOAD_INTEGER(lrvg);
+ break;
+ case kS390_LoadReverse16RR:
+ __ lrvr(i.OutputRegister(), i.InputRegister(0));
+ __ rll(i.OutputRegister(), i.OutputRegister(), Operand(16));
+ break;
+ case kS390_LoadReverse32RR:
+ __ lrvr(i.OutputRegister(), i.InputRegister(0));
+ break;
+ case kS390_LoadReverse64RR:
+ __ lrvgr(i.OutputRegister(), i.InputRegister(0));
+ break;
#if V8_TARGET_ARCH_S390X
case kS390_LoadWord64:
ASSEMBLE_LOAD_INTEGER(lg);
@@ -1868,6 +1887,15 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction(
ASSEMBLE_STORE_INTEGER(StoreP);
break;
#endif
+ case kS390_StoreReverse16:
+ ASSEMBLE_STORE_INTEGER(strvh);
+ break;
+ case kS390_StoreReverse32:
+ ASSEMBLE_STORE_INTEGER(strv);
+ break;
+ case kS390_StoreReverse64:
+ ASSEMBLE_STORE_INTEGER(strvg);
+ break;
case kS390_StoreFloat32:
ASSEMBLE_STORE_FLOAT32();
break;
« no previous file with comments | « src/compiler/ppc/instruction-selector-ppc.cc ('k') | src/compiler/s390/instruction-codes-s390.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698