#include "llvm/Support/BlockFrequency.h"
#include "llvm/Support/BranchProbability.h"
#include "llvm/Support/DataTypes.h"
#include "gtest/gtest.h"
#include <climits>
#include <cstdint>
usingnamespacellvm;
namespace {
TEST(BlockFrequencyTest, OneToZero) { … }
TEST(BlockFrequencyTest, OneToOne) { … }
TEST(BlockFrequencyTest, ThreeToOne) { … }
TEST(BlockFrequencyTest, MaxToHalfMax) { … }
TEST(BlockFrequencyTest, BigToBig) { … }
TEST(BlockFrequencyTest, MaxToMax) { … }
TEST(BlockFrequencyTest, Subtract) { … }
TEST(BlockFrequency, Divide) { … }
TEST(BlockFrequencyTest, Saturate) { … }
TEST(BlockFrequencyTest, SaturatingRightShift) { … }
}