chromium/v8/test/cctest/compiler/test-branch-combine.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/base/overflowing-math.h"
#include "src/objects/objects-inl.h"
#include "test/cctest/cctest.h"
#include "test/cctest/compiler/codegen-tester.h"
#include "test/common/value-helper.h"

namespace v8 {
namespace internal {
namespace compiler {

static IrOpcode::Value int32cmp_opcodes[] =;


TEST(BranchCombineWord32EqualZero_1) {}


TEST(BranchCombineWord32EqualZero_chain) {}


TEST(BranchCombineInt32LessThanZero_1) {}


TEST(BranchCombineUint32LessThan100_1) {}


TEST(BranchCombineUint32LessThanOrEqual100_1) {}


TEST(BranchCombineZeroLessThanInt32_1) {}


TEST(BranchCombineInt32GreaterThanZero_1) {}


TEST(BranchCombineWord32EqualP) {}


TEST(BranchCombineWord32EqualI) {}


TEST(BranchCombineInt32CmpP) {}


TEST(BranchCombineInt32CmpI) {}


// Now come the sophisticated tests for many input shape combinations.

// Materializes a boolean (1 or 0) from a comparison.
class CmpMaterializeBoolGen : public BinopGen<int32_t> {};


// Generates a branch and return one of two values from a comparison.
class CmpBranchGen : public BinopGen<int32_t> {};


TEST(BranchCombineInt32CmpAllInputShapes_materialized) {}


TEST(BranchCombineInt32CmpAllInputShapes_inverted_materialized) {}


TEST(BranchCombineInt32CmpAllInputShapes_branch_true) {}


TEST(BranchCombineInt32CmpAllInputShapes_branch_false) {}


TEST(BranchCombineInt32CmpAllInputShapes_inverse_branch_true) {}


TEST(BranchCombineInt32CmpAllInputShapes_inverse_branch_false) {}


TEST(BranchCombineFloat64Compares) {}

TEST(BranchCombineEffectLevel) {}

TEST(BranchCombineInt32AddLessThanZero) {}

TEST(BranchCombineInt32AddGreaterThanOrEqualZero) {}

TEST(BranchCombineInt32ZeroGreaterThanAdd) {}

TEST(BranchCombineInt32ZeroLessThanOrEqualAdd) {}

TEST(BranchCombineUint32AddLessThanOrEqualZero) {}

TEST(BranchCombineUint32AddGreaterThanZero) {}

TEST(BranchCombineUint32ZeroGreaterThanOrEqualAdd) {}

TEST(BranchCombineUint32ZeroLessThanAdd) {}

TEST(BranchCombineWord32AndLessThanZero) {}

TEST(BranchCombineWord32AndGreaterThanOrEqualZero) {}

TEST(BranchCombineInt32ZeroGreaterThanAnd) {}

TEST(BranchCombineInt32ZeroLessThanOrEqualAnd) {}

TEST(BranchCombineUint32AndLessThanOrEqualZero) {}

TEST(BranchCombineUint32AndGreaterThanZero) {}

TEST(BranchCombineUint32ZeroGreaterThanOrEqualAnd) {}

TEST(BranchCombineUint32ZeroLessThanAnd) {}

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