From 17d3c257b95ef14a21b9ecd5abb163aa8918dd09 Mon Sep 17 00:00:00 2001 From: Clement Courbet Date: Tue, 22 May 2018 13:31:29 +0000 Subject: [llvm-exegesis] Analysis output uses HTML. Summary: This makes the report much more readable. Reviewers: gchatelet Subscribers: tschuett, mgrang, craig.topper, RKSimon, llvm-commits Differential Revision: https://reviews.llvm.org/D47189 llvm-svn: 332979 --- llvm/unittests/tools/llvm-exegesis/ClusteringTest.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'llvm/unittests/tools') diff --git a/llvm/unittests/tools/llvm-exegesis/ClusteringTest.cpp b/llvm/unittests/tools/llvm-exegesis/ClusteringTest.cpp index b89c277b694..ecdb7d2a274 100644 --- a/llvm/unittests/tools/llvm-exegesis/ClusteringTest.cpp +++ b/llvm/unittests/tools/llvm-exegesis/ClusteringTest.cpp @@ -82,5 +82,19 @@ TEST(ClusteringTest, Clusters3D_InvalidOrder) { consumeError(std::move(Error)); } +TEST(ClusteringTest, Ordering) { + ASSERT_LT(InstructionBenchmarkClustering::ClusterId::makeValid(1), + InstructionBenchmarkClustering::ClusterId::makeValid(2)); + + ASSERT_LT(InstructionBenchmarkClustering::ClusterId::makeValid(2), + InstructionBenchmarkClustering::ClusterId::noise()); + + ASSERT_LT(InstructionBenchmarkClustering::ClusterId::makeValid(2), + InstructionBenchmarkClustering::ClusterId::error()); + + ASSERT_LT(InstructionBenchmarkClustering::ClusterId::noise(), + InstructionBenchmarkClustering::ClusterId::error()); +} + } // namespace } // namespace exegesis -- cgit v1.2.3