summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-cov/llvm-cov.test
diff options
context:
space:
mode:
authorYuchen Wu <yuchenericwu@hotmail.com>2013-12-13 01:15:07 +0000
committerYuchen Wu <yuchenericwu@hotmail.com>2013-12-13 01:15:07 +0000
commit342714c11ca26281453fc3ee0c5e5bafd044031a (patch)
treeffa675501285698f7fbbf9386439ce4d7369cfc5 /llvm/test/tools/llvm-cov/llvm-cov.test
parentbaaf74d4ca5efcf23a3f4fb896e550a35b147a2f (diff)
downloadbcm5719-llvm-342714c11ca26281453fc3ee0c5e5bafd044031a.tar.gz
bcm5719-llvm-342714c11ca26281453fc3ee0c5e5bafd044031a.zip
llvm-cov: Added -b option for branch probabilities.
This option tells llvm-cov to print out branch probabilities when a basic block contains multiple branches. It also prints out some function summary info including the number of times the function enters, the percent of time it returns, and how many blocks were executed. Also updated tests. llvm-svn: 197198
Diffstat (limited to 'llvm/test/tools/llvm-cov/llvm-cov.test')
-rw-r--r--llvm/test/tools/llvm-cov/llvm-cov.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-cov/llvm-cov.test b/llvm/test/tools/llvm-cov/llvm-cov.test
index 43725a3cbdd..bf0fb07631d 100644
--- a/llvm/test/tools/llvm-cov/llvm-cov.test
+++ b/llvm/test/tools/llvm-cov/llvm-cov.test
@@ -13,6 +13,10 @@ RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a
RUN: diff -aub test_-a.cpp.gcov test.cpp.gcov
RUN: diff -aub test_-a.h.gcov test.h.gcov
+RUN: llvm-cov -gcno=test.gcno -gcda=test.gcda -a -b
+RUN: diff -aub test_-a_-b.cpp.gcov test.cpp.gcov
+RUN: diff -aub test_-a_-b.h.gcov test.h.gcov
+
RUN: not llvm-cov -gcno=test_read_fail.gcno -gcda=test.gcda
RUN: not llvm-cov -gcno=test.gcno -gcda=test_file_checksum_fail.gcda
OpenPOWER on IntegriCloud