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

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

Issue 1066393002: [turbofan] Add new Float32Abs and Float64Abs operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix comment. Created 5 years, 8 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 "test/unittests/compiler/node-test-utils.h" 5 #include "test/unittests/compiler/node-test-utils.h"
6 6
7 #include "src/assembler.h" 7 #include "src/assembler.h"
8 #include "src/compiler/node-properties.h" 8 #include "src/compiler/node-properties.h"
9 #include "src/compiler/simplified-operator.h" 9 #include "src/compiler/simplified-operator.h"
10 #include "src/unique.h" 10 #include "src/unique.h"
(...skipping 1584 matching lines...) Expand 10 before | Expand all | Expand 10 after
1595 IS_BINOP_MATCHER(Word64Shl) 1595 IS_BINOP_MATCHER(Word64Shl)
1596 IS_BINOP_MATCHER(Word64Equal) 1596 IS_BINOP_MATCHER(Word64Equal)
1597 IS_BINOP_MATCHER(Int32AddWithOverflow) 1597 IS_BINOP_MATCHER(Int32AddWithOverflow)
1598 IS_BINOP_MATCHER(Int32Add) 1598 IS_BINOP_MATCHER(Int32Add)
1599 IS_BINOP_MATCHER(Int32Sub) 1599 IS_BINOP_MATCHER(Int32Sub)
1600 IS_BINOP_MATCHER(Int32Mul) 1600 IS_BINOP_MATCHER(Int32Mul)
1601 IS_BINOP_MATCHER(Int32MulHigh) 1601 IS_BINOP_MATCHER(Int32MulHigh)
1602 IS_BINOP_MATCHER(Int32LessThan) 1602 IS_BINOP_MATCHER(Int32LessThan)
1603 IS_BINOP_MATCHER(Uint32LessThan) 1603 IS_BINOP_MATCHER(Uint32LessThan)
1604 IS_BINOP_MATCHER(Uint32LessThanOrEqual) 1604 IS_BINOP_MATCHER(Uint32LessThanOrEqual)
1605 IS_BINOP_MATCHER(Float32Max)
1606 IS_BINOP_MATCHER(Float32Min)
1605 IS_BINOP_MATCHER(Float64Max) 1607 IS_BINOP_MATCHER(Float64Max)
1606 IS_BINOP_MATCHER(Float64Min) 1608 IS_BINOP_MATCHER(Float64Min)
1607 IS_BINOP_MATCHER(Float64Sub) 1609 IS_BINOP_MATCHER(Float64Sub)
1608 IS_BINOP_MATCHER(Float64InsertLowWord32) 1610 IS_BINOP_MATCHER(Float64InsertLowWord32)
1609 IS_BINOP_MATCHER(Float64InsertHighWord32) 1611 IS_BINOP_MATCHER(Float64InsertHighWord32)
1610 #undef IS_BINOP_MATCHER 1612 #undef IS_BINOP_MATCHER
1611 1613
1612 1614
1613 #define IS_UNOP_MATCHER(Name) \ 1615 #define IS_UNOP_MATCHER(Name) \
1614 Matcher<Node*> Is##Name(const Matcher<Node*>& input_matcher) { \ 1616 Matcher<Node*> Is##Name(const Matcher<Node*>& input_matcher) { \
1615 return MakeMatcher(new IsUnopMatcher(IrOpcode::k##Name, input_matcher)); \ 1617 return MakeMatcher(new IsUnopMatcher(IrOpcode::k##Name, input_matcher)); \
1616 } 1618 }
1617 IS_UNOP_MATCHER(BooleanNot) 1619 IS_UNOP_MATCHER(BooleanNot)
1618 IS_UNOP_MATCHER(ChangeFloat64ToInt32) 1620 IS_UNOP_MATCHER(ChangeFloat64ToInt32)
1619 IS_UNOP_MATCHER(ChangeFloat64ToUint32) 1621 IS_UNOP_MATCHER(ChangeFloat64ToUint32)
1620 IS_UNOP_MATCHER(ChangeInt32ToFloat64) 1622 IS_UNOP_MATCHER(ChangeInt32ToFloat64)
1621 IS_UNOP_MATCHER(ChangeInt32ToInt64) 1623 IS_UNOP_MATCHER(ChangeInt32ToInt64)
1622 IS_UNOP_MATCHER(ChangeUint32ToFloat64) 1624 IS_UNOP_MATCHER(ChangeUint32ToFloat64)
1623 IS_UNOP_MATCHER(ChangeUint32ToUint64) 1625 IS_UNOP_MATCHER(ChangeUint32ToUint64)
1624 IS_UNOP_MATCHER(TruncateFloat64ToFloat32) 1626 IS_UNOP_MATCHER(TruncateFloat64ToFloat32)
1625 IS_UNOP_MATCHER(TruncateFloat64ToInt32) 1627 IS_UNOP_MATCHER(TruncateFloat64ToInt32)
1626 IS_UNOP_MATCHER(TruncateInt64ToInt32) 1628 IS_UNOP_MATCHER(TruncateInt64ToInt32)
1629 IS_UNOP_MATCHER(Float32Abs)
1630 IS_UNOP_MATCHER(Float64Abs)
1627 IS_UNOP_MATCHER(Float64Sqrt) 1631 IS_UNOP_MATCHER(Float64Sqrt)
1628 IS_UNOP_MATCHER(Float64RoundDown) 1632 IS_UNOP_MATCHER(Float64RoundDown)
1629 IS_UNOP_MATCHER(Float64RoundTruncate) 1633 IS_UNOP_MATCHER(Float64RoundTruncate)
1630 IS_UNOP_MATCHER(Float64RoundTiesAway) 1634 IS_UNOP_MATCHER(Float64RoundTiesAway)
1631 IS_UNOP_MATCHER(Float64ExtractLowWord32) 1635 IS_UNOP_MATCHER(Float64ExtractLowWord32)
1632 IS_UNOP_MATCHER(Float64ExtractHighWord32) 1636 IS_UNOP_MATCHER(Float64ExtractHighWord32)
1633 IS_UNOP_MATCHER(NumberToInt32) 1637 IS_UNOP_MATCHER(NumberToInt32)
1634 IS_UNOP_MATCHER(NumberToUint32) 1638 IS_UNOP_MATCHER(NumberToUint32)
1635 IS_UNOP_MATCHER(ObjectIsSmi) 1639 IS_UNOP_MATCHER(ObjectIsSmi)
1636 IS_UNOP_MATCHER(ObjectIsNonNegativeSmi) 1640 IS_UNOP_MATCHER(ObjectIsNonNegativeSmi)
1637 IS_UNOP_MATCHER(Word32Clz) 1641 IS_UNOP_MATCHER(Word32Clz)
1638 #undef IS_UNOP_MATCHER 1642 #undef IS_UNOP_MATCHER
1639 1643
1640 } // namespace compiler 1644 } // namespace compiler
1641 } // namespace internal 1645 } // namespace internal
1642 } // namespace v8 1646 } // namespace v8
OLDNEW
« no previous file with comments | « test/unittests/compiler/node-test-utils.h ('k') | test/unittests/compiler/x64/instruction-selector-x64-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698