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

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

Issue 2122853002: Implement UnaligedLoad and UnaligedStore turbofan operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Nits. Fixes some errors 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/mips/instruction-selector-mips.cc ('k') | src/compiler/mips64/instruction-codes-mips64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/mips64/code-generator-mips64.cc
diff --git a/src/compiler/mips64/code-generator-mips64.cc b/src/compiler/mips64/code-generator-mips64.cc
index d342ccffe97d3e32c33fc48e50f141e90ea998e9..ce09104f5079c17252ae5ef121f6acca82a65e09 100644
--- a/src/compiler/mips64/code-generator-mips64.cc
+++ b/src/compiler/mips64/code-generator-mips64.cc
@@ -1635,43 +1635,83 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction(
case kMips64Lhu:
__ lhu(i.OutputRegister(), i.MemoryOperand());
break;
+ case kMips64Ulhu:
+ __ Ulhu(i.OutputRegister(), i.MemoryOperand());
+ break;
case kMips64Lh:
__ lh(i.OutputRegister(), i.MemoryOperand());
break;
+ case kMips64Ulh:
+ __ Ulh(i.OutputRegister(), i.MemoryOperand());
+ break;
case kMips64Sh:
__ sh(i.InputRegister(2), i.MemoryOperand());
break;
+ case kMips64Ush:
+ __ Ush(i.InputRegister(2), i.MemoryOperand(), kScratchReg);
+ break;
case kMips64Lw:
__ lw(i.OutputRegister(), i.MemoryOperand());
break;
+ case kMips64Ulw:
+ __ Ulw(i.OutputRegister(), i.MemoryOperand());
+ break;
case kMips64Lwu:
__ lwu(i.OutputRegister(), i.MemoryOperand());
break;
+ case kMips64Ulwu:
+ __ Ulwu(i.OutputRegister(), i.MemoryOperand());
+ break;
case kMips64Ld:
__ ld(i.OutputRegister(), i.MemoryOperand());
break;
+ case kMips64Uld:
+ __ Uld(i.OutputRegister(), i.MemoryOperand());
+ break;
case kMips64Sw:
__ sw(i.InputRegister(2), i.MemoryOperand());
break;
+ case kMips64Usw:
+ __ Usw(i.InputRegister(2), i.MemoryOperand());
+ break;
case kMips64Sd:
__ sd(i.InputRegister(2), i.MemoryOperand());
break;
+ case kMips64Usd:
+ __ Usd(i.InputRegister(2), i.MemoryOperand());
+ break;
case kMips64Lwc1: {
__ lwc1(i.OutputSingleRegister(), i.MemoryOperand());
break;
}
+ case kMips64Ulwc1: {
+ __ Ulwc1(i.OutputSingleRegister(), i.MemoryOperand(), kScratchReg);
+ break;
+ }
case kMips64Swc1: {
size_t index = 0;
MemOperand operand = i.MemoryOperand(&index);
__ swc1(i.InputSingleRegister(index), operand);
break;
}
+ case kMips64Uswc1: {
+ size_t index = 0;
+ MemOperand operand = i.MemoryOperand(&index);
+ __ Uswc1(i.InputSingleRegister(index), operand, kScratchReg);
+ break;
+ }
case kMips64Ldc1:
__ ldc1(i.OutputDoubleRegister(), i.MemoryOperand());
break;
+ case kMips64Uldc1:
+ __ Uldc1(i.OutputDoubleRegister(), i.MemoryOperand(), kScratchReg);
+ break;
case kMips64Sdc1:
__ sdc1(i.InputDoubleRegister(2), i.MemoryOperand());
break;
+ case kMips64Usdc1:
+ __ Usdc1(i.InputDoubleRegister(2), i.MemoryOperand(), kScratchReg);
+ break;
case kMips64Push:
if (instr->InputAt(0)->IsFPRegister()) {
__ sdc1(i.InputDoubleRegister(0), MemOperand(sp, -kDoubleSize));
« no previous file with comments | « src/compiler/mips/instruction-selector-mips.cc ('k') | src/compiler/mips64/instruction-codes-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698