chromium/v8/test/unittests/compiler/common-operator-reducer-unittest.cc

// Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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);

}  // namespace


// -----------------------------------------------------------------------------
// Branch


TEST_F(CommonOperatorReducerTest, BranchWithInt32ZeroConstant) {}


TEST_F(CommonOperatorReducerTest, BranchWithInt32OneConstant) {}


TEST_F(CommonOperatorReducerTest, BranchWithFalseConstant) {}


TEST_F(CommonOperatorReducerTest, BranchWithTrueConstant) {}


TEST_F(CommonOperatorReducerTest, BranchWithBooleanNot) {}

TEST_F(CommonOperatorReducerTest, BranchWithSelect) {}

// -----------------------------------------------------------------------------
// Merge


TEST_F(CommonOperatorReducerTest, MergeOfUnusedDiamond0) {}


TEST_F(CommonOperatorReducerTest, MergeOfUnusedDiamond1) {}


// -----------------------------------------------------------------------------
// EffectPhi


TEST_F(CommonOperatorReducerTest, EffectPhiWithMerge) {}


TEST_F(CommonOperatorReducerTest, EffectPhiWithLoop) {}


// -----------------------------------------------------------------------------
// Phi


TEST_F(CommonOperatorReducerTest, PhiWithMerge) {}


TEST_F(CommonOperatorReducerTest, PhiWithLoop) {}


TEST_F(CommonOperatorReducerTest, PhiToFloat32Abs) {}


TEST_F(CommonOperatorReducerTest, PhiToFloat64Abs) {}


// -----------------------------------------------------------------------------
// Return


TEST_F(CommonOperatorReducerTest, ReturnWithPhiAndEffectPhiAndMerge) {}

TEST_F(CommonOperatorReducerTest, MultiReturnWithPhiAndEffectPhiAndMerge) {}

// -----------------------------------------------------------------------------
// Select


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) {}

// -----------------------------------------------------------------------------
// Switch

TEST_F(CommonOperatorReducerTest, SwitchInputMatchesCaseWithDefault) {}

TEST_F(CommonOperatorReducerTest, SwitchInputMatchesDefaultWithCase) {}

TEST_F(CommonOperatorReducerTest, SwitchInputMatchesCaseExtraCaseWithDefault) {}

}  // namespace common_operator_reducer_unittest
}  // namespace compiler
}  // namespace internal
}  // namespace v8