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

Unified Diff: src/compiler/arm64/instruction-selector-arm64.cc

Issue 2896303003: Reland of Reland of "ARM64: Add NEON support" (Closed)
Patch Set: Created 3 years, 7 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/arm64/code-generator-arm64.cc ('k') | src/crankshaft/arm64/delayed-masm-arm64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/arm64/instruction-selector-arm64.cc
diff --git a/src/compiler/arm64/instruction-selector-arm64.cc b/src/compiler/arm64/instruction-selector-arm64.cc
index fa8067c6a790a17a3df213ffbb343c68ca22d1ff..ff9943ff5f2ea3321546e7972c056cff1ce58e93 100644
--- a/src/compiler/arm64/instruction-selector-arm64.cc
+++ b/src/compiler/arm64/instruction-selector-arm64.cc
@@ -103,13 +103,13 @@ class Arm64OperandGenerator final : public OperandGenerator {
case kArithmeticImm:
return Assembler::IsImmAddSub(value);
case kLoadStoreImm8:
- return IsLoadStoreImmediate(value, LSByte);
+ return IsLoadStoreImmediate(value, 0);
case kLoadStoreImm16:
- return IsLoadStoreImmediate(value, LSHalfword);
+ return IsLoadStoreImmediate(value, 1);
case kLoadStoreImm32:
- return IsLoadStoreImmediate(value, LSWord);
+ return IsLoadStoreImmediate(value, 2);
case kLoadStoreImm64:
- return IsLoadStoreImmediate(value, LSDoubleWord);
+ return IsLoadStoreImmediate(value, 3);
case kNoImmediate:
return false;
case kShift32Imm: // Fall through.
@@ -130,7 +130,7 @@ class Arm64OperandGenerator final : public OperandGenerator {
}
private:
- bool IsLoadStoreImmediate(int64_t value, LSDataSize size) {
+ bool IsLoadStoreImmediate(int64_t value, unsigned size) {
return Assembler::IsImmLSScaled(value, size) ||
Assembler::IsImmLSUnscaled(value);
}
« no previous file with comments | « src/compiler/arm64/code-generator-arm64.cc ('k') | src/crankshaft/arm64/delayed-masm-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698