summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/tools/llvm-exegesis/ClusteringTest.cpp
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-05-22 13:31:29 +0000
committerClement Courbet <courbet@google.com>2018-05-22 13:31:29 +0000
commit17d3c257b95ef14a21b9ecd5abb163aa8918dd09 (patch)
treeb753068ef47601dce5b0fd18c757cd1ca0901b27 /llvm/unittests/tools/llvm-exegesis/ClusteringTest.cpp
parent50a7969d6e63faf8de66812dfac76e78c90fbd39 (diff)
downloadbcm5719-llvm-17d3c257b95ef14a21b9ecd5abb163aa8918dd09.tar.gz
bcm5719-llvm-17d3c257b95ef14a21b9ecd5abb163aa8918dd09.zip
[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
Diffstat (limited to 'llvm/unittests/tools/llvm-exegesis/ClusteringTest.cpp')
-rw-r--r--llvm/unittests/tools/llvm-exegesis/ClusteringTest.cpp14
1 files changed, 14 insertions, 0 deletions
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
OpenPOWER on IntegriCloud