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

Side by Side Diff: src/compiler/x64/code-generator-x64.cc

Issue 728103007: [x64] Recognize MOVSXBL. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/compiler/x64/instruction-selector-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/node-properties-inl.h" 10 #include "src/compiler/node-properties-inl.h"
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 break; 476 break;
477 case kSSEUint32ToFloat64: 477 case kSSEUint32ToFloat64:
478 if (instr->InputAt(0)->IsRegister()) { 478 if (instr->InputAt(0)->IsRegister()) {
479 __ movl(kScratchRegister, i.InputRegister(0)); 479 __ movl(kScratchRegister, i.InputRegister(0));
480 } else { 480 } else {
481 __ movl(kScratchRegister, i.InputOperand(0)); 481 __ movl(kScratchRegister, i.InputOperand(0));
482 } 482 }
483 __ cvtqsi2sd(i.OutputDoubleRegister(), kScratchRegister); 483 __ cvtqsi2sd(i.OutputDoubleRegister(), kScratchRegister);
484 break; 484 break;
485 case kX64Movsxbl: 485 case kX64Movsxbl:
486 __ movsxbl(i.OutputRegister(), i.MemoryOperand()); 486 if (instr->addressing_mode() != kMode_None) {
487 __ movsxbl(i.OutputRegister(), i.MemoryOperand());
488 } else if (instr->InputAt(0)->IsRegister()) {
489 __ movsxbl(i.OutputRegister(), i.InputRegister(0));
490 } else {
491 __ movsxbl(i.OutputRegister(), i.InputOperand(0));
492 }
487 __ AssertZeroExtended(i.OutputRegister()); 493 __ AssertZeroExtended(i.OutputRegister());
488 break; 494 break;
489 case kX64Movzxbl: 495 case kX64Movzxbl:
490 __ movzxbl(i.OutputRegister(), i.MemoryOperand()); 496 __ movzxbl(i.OutputRegister(), i.MemoryOperand());
491 break; 497 break;
492 case kX64Movb: { 498 case kX64Movb: {
493 int index = 0; 499 int index = 0;
494 Operand operand = i.MemoryOperand(&index); 500 Operand operand = i.MemoryOperand(&index);
495 if (HasImmediateInput(instr, index)) { 501 if (HasImmediateInput(instr, index)) {
496 __ movb(operand, Immediate(i.InputInt8(index))); 502 __ movb(operand, Immediate(i.InputInt8(index)));
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
1025 } 1031 }
1026 } 1032 }
1027 MarkLazyDeoptSite(); 1033 MarkLazyDeoptSite();
1028 } 1034 }
1029 1035
1030 #undef __ 1036 #undef __
1031 1037
1032 } // namespace internal 1038 } // namespace internal
1033 } // namespace compiler 1039 } // namespace compiler
1034 } // namespace v8 1040 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/x64/instruction-selector-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698