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

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

Issue 980073003: MIPS: [turbofan] Support for %_DoubleHi, %_DoubleLo and %_ConstructDouble. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix shifts. Created 5 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #include "src/compiler/code-generator-impl.h" 6 #include "src/compiler/code-generator-impl.h"
7 #include "src/compiler/gap-resolver.h" 7 #include "src/compiler/gap-resolver.h"
8 #include "src/compiler/node-matchers.h" 8 #include "src/compiler/node-matchers.h"
9 #include "src/mips/macro-assembler-mips.h" 9 #include "src/mips/macro-assembler-mips.h"
10 #include "src/scopes.h" 10 #include "src/scopes.h"
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 __ trunc_w_d(scratch, i.InputDoubleRegister(0)); 678 __ trunc_w_d(scratch, i.InputDoubleRegister(0));
679 __ mfc1(i.OutputRegister(), scratch); 679 __ mfc1(i.OutputRegister(), scratch);
680 break; 680 break;
681 } 681 }
682 case kMips64TruncUwD: { 682 case kMips64TruncUwD: {
683 FPURegister scratch = kScratchDoubleReg; 683 FPURegister scratch = kScratchDoubleReg;
684 // TODO(plind): Fix wrong param order of Trunc_uw_d() macro-asm function. 684 // TODO(plind): Fix wrong param order of Trunc_uw_d() macro-asm function.
685 __ Trunc_uw_d(i.InputDoubleRegister(0), i.OutputRegister(), scratch); 685 __ Trunc_uw_d(i.InputDoubleRegister(0), i.OutputRegister(), scratch);
686 break; 686 break;
687 } 687 }
688 case kMips64FmoveLowUwD:
689 __ FmoveLow(i.OutputRegister(), i.InputDoubleRegister(0));
690 // remove sign.
691 __ dsll32(i.OutputRegister(), i.OutputRegister(), 0);
692 __ dsrl32(i.OutputRegister(), i.OutputRegister(), 0);
693 break;
694 case kMips64FmoveLowDUw:
695 __ FmoveLow(i.OutputDoubleRegister(), i.InputRegister(1));
696 break;
697 case kMips64FmoveHighUwD:
698 __ FmoveHigh(i.OutputRegister(), i.InputDoubleRegister(0));
699 break;
700 case kMips64FmoveHighDUw:
701 __ FmoveHigh(i.OutputDoubleRegister(), i.InputRegister(1));
702 break;
688 // ... more basic instructions ... 703 // ... more basic instructions ...
689 704
690 case kMips64Lbu: 705 case kMips64Lbu:
691 __ lbu(i.OutputRegister(), i.MemoryOperand()); 706 __ lbu(i.OutputRegister(), i.MemoryOperand());
692 break; 707 break;
693 case kMips64Lb: 708 case kMips64Lb:
694 __ lb(i.OutputRegister(), i.MemoryOperand()); 709 __ lb(i.OutputRegister(), i.MemoryOperand());
695 break; 710 break;
696 case kMips64Sb: 711 case kMips64Sb:
697 __ sb(i.InputRegister(2), i.MemoryOperand()); 712 __ sb(i.InputRegister(2), i.MemoryOperand());
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
1365 } 1380 }
1366 } 1381 }
1367 MarkLazyDeoptSite(); 1382 MarkLazyDeoptSite();
1368 } 1383 }
1369 1384
1370 #undef __ 1385 #undef __
1371 1386
1372 } // namespace compiler 1387 } // namespace compiler
1373 } // namespace internal 1388 } // namespace internal
1374 } // namespace v8 1389 } // namespace v8
OLDNEW
« 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