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

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

Issue 2812573003: Reland "ARM64: Add NEON support" (Closed)
Patch Set: Add trace directory to gitignore Created 3 years, 8 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 a45a4fbc60125555b621702a32c84f8c1e601fec..318bdd4b07e1eb16cd6d35243b249bb203a2397e 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