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

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

Issue 1356913002: [turbofan] Add support for reinterpreting integers as floating point and vice versa. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rename ReinterpretAs to BitcastTo Created 5 years, 3 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/compiler/osr.h" 9 #include "src/compiler/osr.h"
10 #include "src/mips/macro-assembler-mips.h" 10 #include "src/mips/macro-assembler-mips.h"
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 __ trunc_w_d(scratch, i.InputDoubleRegister(0)); 792 __ trunc_w_d(scratch, i.InputDoubleRegister(0));
793 __ mfc1(i.OutputRegister(), scratch); 793 __ mfc1(i.OutputRegister(), scratch);
794 break; 794 break;
795 } 795 }
796 case kMips64TruncUwD: { 796 case kMips64TruncUwD: {
797 FPURegister scratch = kScratchDoubleReg; 797 FPURegister scratch = kScratchDoubleReg;
798 // TODO(plind): Fix wrong param order of Trunc_uw_d() macro-asm function. 798 // TODO(plind): Fix wrong param order of Trunc_uw_d() macro-asm function.
799 __ Trunc_uw_d(i.InputDoubleRegister(0), i.OutputRegister(), scratch); 799 __ Trunc_uw_d(i.InputDoubleRegister(0), i.OutputRegister(), scratch);
800 break; 800 break;
801 } 801 }
802 case kMips64BitcastDL:
803 __ dmfc1(i.OutputRegister(), i.InputDoubleRegister(0));
804 break;
805 case kMips64BitcastLD:
806 __ dmtc1(i.InputRegister(0), i.OutputDoubleRegister());
807 break;
802 case kMips64Float64ExtractLowWord32: 808 case kMips64Float64ExtractLowWord32:
803 __ FmoveLow(i.OutputRegister(), i.InputDoubleRegister(0)); 809 __ FmoveLow(i.OutputRegister(), i.InputDoubleRegister(0));
804 break; 810 break;
805 case kMips64Float64ExtractHighWord32: 811 case kMips64Float64ExtractHighWord32:
806 __ FmoveHigh(i.OutputRegister(), i.InputDoubleRegister(0)); 812 __ FmoveHigh(i.OutputRegister(), i.InputDoubleRegister(0));
807 break; 813 break;
808 case kMips64Float64InsertLowWord32: 814 case kMips64Float64InsertLowWord32:
809 __ FmoveLow(i.OutputDoubleRegister(), i.InputRegister(1)); 815 __ FmoveLow(i.OutputDoubleRegister(), i.InputRegister(1));
810 break; 816 break;
811 case kMips64Float64InsertHighWord32: 817 case kMips64Float64InsertHighWord32:
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
1515 padding_size -= v8::internal::Assembler::kInstrSize; 1521 padding_size -= v8::internal::Assembler::kInstrSize;
1516 } 1522 }
1517 } 1523 }
1518 } 1524 }
1519 1525
1520 #undef __ 1526 #undef __
1521 1527
1522 } // namespace compiler 1528 } // namespace compiler
1523 } // namespace internal 1529 } // namespace internal
1524 } // namespace v8 1530 } // 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