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

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

Issue 1768233002: [wasm] Int64Lowering of I64ShrU and I64ShrS on ia32. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Forgot to save a file. Created 4 years, 9 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
Index: src/compiler/ia32/code-generator-ia32.cc
diff --git a/src/compiler/ia32/code-generator-ia32.cc b/src/compiler/ia32/code-generator-ia32.cc
index f81f5760632b95bb63938443e3efbb54b06130a5..21c02414e1c495a3e21b513c3ba4d9bc05e8c155 100644
--- a/src/compiler/ia32/code-generator-ia32.cc
+++ b/src/compiler/ia32/code-generator-ia32.cc
@@ -640,6 +640,22 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) {
__ PairShl_cl(i.InputRegister(1), i.InputRegister(0));
}
break;
+ case kIA32PairShr:
+ if (HasImmediateInput(instr, 2)) {
+ __ PairShr(i.InputRegister(1), i.InputRegister(0), i.InputInt6(2));
+ } else {
+ // Shift has been loaded into CL by the register allocator.
+ __ PairShr_cl(i.InputRegister(1), i.InputRegister(0));
+ }
+ break;
+ case kIA32PairSar:
+ if (HasImmediateInput(instr, 2)) {
+ __ PairSar(i.InputRegister(1), i.InputRegister(0), i.InputInt6(2));
+ } else {
+ // Shift has been loaded into CL by the register allocator.
+ __ PairSar_cl(i.InputRegister(1), i.InputRegister(0));
+ }
+ break;
case kIA32Ror:
if (HasImmediateInput(instr, 1)) {
__ ror(i.OutputOperand(), i.InputInt5(1));

Powered by Google App Engine
This is Rietveld 408576698