Chromium Code Reviews

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

Issue 1779713009: Implement optional turbofan UnalignedLoad and UnalignedStore operators (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix failures in cctest/test-run-wasm-64/Run_Wasm_LoadStoreI64_sx due to missing implementation of U… Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/compiler/mips/code-generator-mips.cc
diff --git a/src/compiler/mips/code-generator-mips.cc b/src/compiler/mips/code-generator-mips.cc
index 26074af6275f76c43b0b8924235e6075f07776d6..602818936bdd8422900848fd48bbfac36a5b218e 100644
--- a/src/compiler/mips/code-generator-mips.cc
+++ b/src/compiler/mips/code-generator-mips.cc
@@ -1166,34 +1166,65 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) {
case kMipsLhu:
__ lhu(i.OutputRegister(), i.MemoryOperand());
break;
+ case kMipsUlhu:
+ __ Ulhu(i.OutputRegister(), i.MemoryOperand());
+ break;
case kMipsLh:
__ lh(i.OutputRegister(), i.MemoryOperand());
break;
+ case kMipsUlh:
+ __ Ulh(i.OutputRegister(), i.MemoryOperand());
+ break;
case kMipsSh:
__ sh(i.InputRegister(2), i.MemoryOperand());
break;
+ case kMipsUsh:
+ __ Ush(i.InputRegister(2), i.MemoryOperand(), kScratchReg);
+ break;
case kMipsLw:
__ lw(i.OutputRegister(), i.MemoryOperand());
break;
+ case kMipsUlw:
+ __ Ulw(i.OutputRegister(), i.MemoryOperand());
+ break;
case kMipsSw:
__ sw(i.InputRegister(2), i.MemoryOperand());
break;
+ case kMipsUsw:
+ __ Usw(i.InputRegister(2), i.MemoryOperand());
+ break;
case kMipsLwc1: {
__ lwc1(i.OutputSingleRegister(), i.MemoryOperand());
break;
}
+ case kMipsUlwc1: {
+ __ lwc1(i.OutputSingleRegister(), i.MemoryOperand());
+ break;
+ }
case kMipsSwc1: {
size_t index = 0;
MemOperand operand = i.MemoryOperand(&index);
__ swc1(i.InputSingleRegister(index), operand);
break;
}
+ case kMipsUswc1: {
+ size_t index = 0;
+ MemOperand operand = i.MemoryOperand(&index);
+ __ Uswc1(i.InputSingleRegister(index), operand, kScratchReg);
+ break;
+ }
case kMipsLdc1:
__ ldc1(i.OutputDoubleRegister(), i.MemoryOperand());
break;
+ case kMipsUldc1:
+ __ Uldc1(i.OutputDoubleRegister(), i.MemoryOperand(), kScratchReg);
+ break;
case kMipsSdc1:
__ sdc1(i.InputDoubleRegister(2), i.MemoryOperand());
break;
+ case kMipsUsdc1:
+ __ Usdc1(i.InputDoubleRegister(2), i.MemoryOperand(), kScratchReg);
+ break;
case kMipsPush:
if (instr->InputAt(0)->IsDoubleRegister()) {
__ sdc1(i.InputDoubleRegister(0), MemOperand(sp, -kDoubleSize));

Powered by Google App Engine