#include "src/compiler/common-operator-reducer.h"
#include "src/codegen/machine-type.h"
#include "src/compiler/common-operator.h"
#include "src/compiler/machine-operator.h"
#include "src/compiler/operator.h"
#include "src/compiler/simplified-operator.h"
#include "test/unittests/compiler/graph-reducer-unittest.h"
#include "test/unittests/compiler/graph-unittest.h"
#include "test/unittests/compiler/node-test-utils.h"
StrictMock;
namespace v8 {
namespace internal {
namespace compiler {
namespace common_operator_reducer_unittest {
class CommonOperatorReducerTest : public GraphTest { … };
namespace {
const BranchHint kBranchHints[] = …;
const MachineRepresentation kMachineRepresentations[] = …;
const Operator kOp0(0, Operator::kNoProperties, "Op0", 0, 0, 0, 1, 1, 0);
}
TEST_F(CommonOperatorReducerTest, BranchWithInt32ZeroConstant) { … }
TEST_F(CommonOperatorReducerTest, BranchWithInt32OneConstant) { … }
TEST_F(CommonOperatorReducerTest, BranchWithFalseConstant) { … }
TEST_F(CommonOperatorReducerTest, BranchWithTrueConstant) { … }
TEST_F(CommonOperatorReducerTest, BranchWithBooleanNot) { … }
TEST_F(CommonOperatorReducerTest, BranchWithSelect) { … }
TEST_F(CommonOperatorReducerTest, MergeOfUnusedDiamond0) { … }
TEST_F(CommonOperatorReducerTest, MergeOfUnusedDiamond1) { … }
TEST_F(CommonOperatorReducerTest, EffectPhiWithMerge) { … }
TEST_F(CommonOperatorReducerTest, EffectPhiWithLoop) { … }
TEST_F(CommonOperatorReducerTest, PhiWithMerge) { … }
TEST_F(CommonOperatorReducerTest, PhiWithLoop) { … }
TEST_F(CommonOperatorReducerTest, PhiToFloat32Abs) { … }
TEST_F(CommonOperatorReducerTest, PhiToFloat64Abs) { … }
TEST_F(CommonOperatorReducerTest, ReturnWithPhiAndEffectPhiAndMerge) { … }
TEST_F(CommonOperatorReducerTest, MultiReturnWithPhiAndEffectPhiAndMerge) { … }
TEST_F(CommonOperatorReducerTest, SelectWithSameThenAndElse) { … }
TEST_F(CommonOperatorReducerTest, SelectWithInt32ZeroConstant) { … }
TEST_F(CommonOperatorReducerTest, SelectWithInt32OneConstant) { … }
TEST_F(CommonOperatorReducerTest, SelectWithFalseConstant) { … }
TEST_F(CommonOperatorReducerTest, SelectWithTrueConstant) { … }
TEST_F(CommonOperatorReducerTest, SelectToFloat32Abs) { … }
TEST_F(CommonOperatorReducerTest, SelectToFloat64Abs) { … }
TEST_F(CommonOperatorReducerTest, SwitchInputMatchesCaseWithDefault) { … }
TEST_F(CommonOperatorReducerTest, SwitchInputMatchesDefaultWithCase) { … }
TEST_F(CommonOperatorReducerTest, SwitchInputMatchesCaseExtraCaseWithDefault) { … }
}
}
}
}