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

Side by Side Diff: test/unittests/compiler/node-test-utils.cc

Issue 683753004: [turbofan] Transform x * -1.0 to -0.0 - x. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Corner cases. 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 | Annotate | Revision Log
« no previous file with comments | « test/unittests/compiler/node-test-utils.h ('k') | no next file » | 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 "test/unittests/compiler/node-test-utils.h" 5 #include "test/unittests/compiler/node-test-utils.h"
6 6
7 #include "src/compiler/node-properties-inl.h" 7 #include "src/compiler/node-properties-inl.h"
8 #include "src/compiler/simplified-operator.h" 8 #include "src/compiler/simplified-operator.h"
9 9
10 using testing::_; 10 using testing::_;
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after
1033 IS_BINOP_MATCHER(Word64Shl) 1033 IS_BINOP_MATCHER(Word64Shl)
1034 IS_BINOP_MATCHER(Word64Equal) 1034 IS_BINOP_MATCHER(Word64Equal)
1035 IS_BINOP_MATCHER(Int32AddWithOverflow) 1035 IS_BINOP_MATCHER(Int32AddWithOverflow)
1036 IS_BINOP_MATCHER(Int32Add) 1036 IS_BINOP_MATCHER(Int32Add)
1037 IS_BINOP_MATCHER(Int32Sub) 1037 IS_BINOP_MATCHER(Int32Sub)
1038 IS_BINOP_MATCHER(Int32Mul) 1038 IS_BINOP_MATCHER(Int32Mul)
1039 IS_BINOP_MATCHER(Int32MulHigh) 1039 IS_BINOP_MATCHER(Int32MulHigh)
1040 IS_BINOP_MATCHER(Int32LessThan) 1040 IS_BINOP_MATCHER(Int32LessThan)
1041 IS_BINOP_MATCHER(Uint32LessThan) 1041 IS_BINOP_MATCHER(Uint32LessThan)
1042 IS_BINOP_MATCHER(Uint32LessThanOrEqual) 1042 IS_BINOP_MATCHER(Uint32LessThanOrEqual)
1043 IS_BINOP_MATCHER(Float64Sub)
1043 #undef IS_BINOP_MATCHER 1044 #undef IS_BINOP_MATCHER
1044 1045
1045 1046
1046 #define IS_UNOP_MATCHER(Name) \ 1047 #define IS_UNOP_MATCHER(Name) \
1047 Matcher<Node*> Is##Name(const Matcher<Node*>& input_matcher) { \ 1048 Matcher<Node*> Is##Name(const Matcher<Node*>& input_matcher) { \
1048 return MakeMatcher(new IsUnopMatcher(IrOpcode::k##Name, input_matcher)); \ 1049 return MakeMatcher(new IsUnopMatcher(IrOpcode::k##Name, input_matcher)); \
1049 } 1050 }
1050 IS_UNOP_MATCHER(BooleanNot) 1051 IS_UNOP_MATCHER(BooleanNot)
1051 IS_UNOP_MATCHER(ChangeFloat64ToInt32) 1052 IS_UNOP_MATCHER(ChangeFloat64ToInt32)
1052 IS_UNOP_MATCHER(ChangeFloat64ToUint32) 1053 IS_UNOP_MATCHER(ChangeFloat64ToUint32)
1053 IS_UNOP_MATCHER(ChangeInt32ToFloat64) 1054 IS_UNOP_MATCHER(ChangeInt32ToFloat64)
1054 IS_UNOP_MATCHER(ChangeInt32ToInt64) 1055 IS_UNOP_MATCHER(ChangeInt32ToInt64)
1055 IS_UNOP_MATCHER(ChangeUint32ToFloat64) 1056 IS_UNOP_MATCHER(ChangeUint32ToFloat64)
1056 IS_UNOP_MATCHER(ChangeUint32ToUint64) 1057 IS_UNOP_MATCHER(ChangeUint32ToUint64)
1057 IS_UNOP_MATCHER(TruncateFloat64ToFloat32) 1058 IS_UNOP_MATCHER(TruncateFloat64ToFloat32)
1058 IS_UNOP_MATCHER(TruncateFloat64ToInt32) 1059 IS_UNOP_MATCHER(TruncateFloat64ToInt32)
1059 IS_UNOP_MATCHER(TruncateInt64ToInt32) 1060 IS_UNOP_MATCHER(TruncateInt64ToInt32)
1060 IS_UNOP_MATCHER(Float64Sqrt) 1061 IS_UNOP_MATCHER(Float64Sqrt)
1061 IS_UNOP_MATCHER(Float64Floor) 1062 IS_UNOP_MATCHER(Float64Floor)
1062 IS_UNOP_MATCHER(Float64Ceil) 1063 IS_UNOP_MATCHER(Float64Ceil)
1063 IS_UNOP_MATCHER(Float64RoundTruncate) 1064 IS_UNOP_MATCHER(Float64RoundTruncate)
1064 IS_UNOP_MATCHER(Float64RoundTiesAway) 1065 IS_UNOP_MATCHER(Float64RoundTiesAway)
1065 #undef IS_UNOP_MATCHER 1066 #undef IS_UNOP_MATCHER
1066 1067
1067 } // namespace compiler 1068 } // namespace compiler
1068 } // namespace internal 1069 } // namespace internal
1069 } // namespace v8 1070 } // namespace v8
OLDNEW
« no previous file with comments | « test/unittests/compiler/node-test-utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698