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

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

Issue 2019693002: MIPS: Fix '[turbofan] Introduce new operators Float32SubPreserveNan and Float64SubPreserveNan'. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix instruction selector mips64. Created 4 years, 6 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
« no previous file with comments | « no previous file | src/compiler/mips/instruction-codes-mips.h » ('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 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/ast/scopes.h" 5 #include "src/ast/scopes.h"
6 #include "src/compiler/code-generator.h" 6 #include "src/compiler/code-generator.h"
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/osr.h" 10 #include "src/compiler/osr.h"
(...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 break; 934 break;
935 case kMipsAddS: 935 case kMipsAddS:
936 // TODO(plind): add special case: combine mult & add. 936 // TODO(plind): add special case: combine mult & add.
937 __ add_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), 937 __ add_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
938 i.InputDoubleRegister(1)); 938 i.InputDoubleRegister(1));
939 break; 939 break;
940 case kMipsSubS: 940 case kMipsSubS:
941 __ sub_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), 941 __ sub_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
942 i.InputDoubleRegister(1)); 942 i.InputDoubleRegister(1));
943 break; 943 break;
944 case kMipsSubPreserveNanS:
945 __ SubNanPreservePayloadAndSign_s(i.OutputDoubleRegister(),
946 i.InputDoubleRegister(0),
947 i.InputDoubleRegister(1));
948 break;
944 case kMipsMulS: 949 case kMipsMulS:
945 // TODO(plind): add special case: right op is -1.0, see arm port. 950 // TODO(plind): add special case: right op is -1.0, see arm port.
946 __ mul_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), 951 __ mul_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
947 i.InputDoubleRegister(1)); 952 i.InputDoubleRegister(1));
948 break; 953 break;
949 case kMipsDivS: 954 case kMipsDivS:
950 __ div_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), 955 __ div_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
951 i.InputDoubleRegister(1)); 956 i.InputDoubleRegister(1));
952 break; 957 break;
953 case kMipsModS: { 958 case kMipsModS: {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 } break; 1005 } break;
1001 case kMipsAddD: 1006 case kMipsAddD:
1002 // TODO(plind): add special case: combine mult & add. 1007 // TODO(plind): add special case: combine mult & add.
1003 __ add_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), 1008 __ add_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
1004 i.InputDoubleRegister(1)); 1009 i.InputDoubleRegister(1));
1005 break; 1010 break;
1006 case kMipsSubD: 1011 case kMipsSubD:
1007 __ sub_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), 1012 __ sub_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
1008 i.InputDoubleRegister(1)); 1013 i.InputDoubleRegister(1));
1009 break; 1014 break;
1015 case kMipsSubPreserveNanD:
1016 __ SubNanPreservePayloadAndSign_d(i.OutputDoubleRegister(),
1017 i.InputDoubleRegister(0),
1018 i.InputDoubleRegister(1));
1019 break;
1010 case kMipsMulD: 1020 case kMipsMulD:
1011 // TODO(plind): add special case: right op is -1.0, see arm port. 1021 // TODO(plind): add special case: right op is -1.0, see arm port.
1012 __ mul_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), 1022 __ mul_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
1013 i.InputDoubleRegister(1)); 1023 i.InputDoubleRegister(1));
1014 break; 1024 break;
1015 case kMipsDivD: 1025 case kMipsDivD:
1016 __ div_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), 1026 __ div_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
1017 i.InputDoubleRegister(1)); 1027 i.InputDoubleRegister(1));
1018 break; 1028 break;
1019 case kMipsModD: { 1029 case kMipsModD: {
(...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after
1980 padding_size -= v8::internal::Assembler::kInstrSize; 1990 padding_size -= v8::internal::Assembler::kInstrSize;
1981 } 1991 }
1982 } 1992 }
1983 } 1993 }
1984 1994
1985 #undef __ 1995 #undef __
1986 1996
1987 } // namespace compiler 1997 } // namespace compiler
1988 } // namespace internal 1998 } // namespace internal
1989 } // namespace v8 1999 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/mips/instruction-codes-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698