aboutsummaryrefslogtreecommitdiff
path: root/gcc/selftest-run-tests.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2017-06-09 09:38:52 +0200
committerMartin Liska <marxin@gcc.gnu.org>2017-06-09 07:38:52 +0000
commitd88382176e53eca7552e29b7bb88ae4efd72a39d (patch)
treee7548f278250e87e028751c87a71c1597f22efae /gcc/selftest-run-tests.c
parent1ee77fbdea58944b047de8ff88901aea4e93ed7d (diff)
downloadgcc-d88382176e53eca7552e29b7bb88ae4efd72a39d.zip
gcc-d88382176e53eca7552e29b7bb88ae4efd72a39d.tar.gz
gcc-d88382176e53eca7552e29b7bb88ae4efd72a39d.tar.bz2
Come up with selftests for predict.c.
2017-06-09 Martin Liska <mliska@suse.cz> * predict.c (struct branch_predictor): New struct. (test_prediction_value_range): New test. (predict_c_tests): New function. * selftest-run-tests.c (selftest::run_tests): Run the function. * selftest.h: Declare new tests. From-SVN: r249048
Diffstat (limited to 'gcc/selftest-run-tests.c')
-rw-r--r--gcc/selftest-run-tests.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/selftest-run-tests.c b/gcc/selftest-run-tests.c
index f62bc72..30e476d 100644
--- a/gcc/selftest-run-tests.c
+++ b/gcc/selftest-run-tests.c
@@ -92,6 +92,7 @@ selftest::run_tests ()
targetm.run_target_selftests ();
store_merging_c_tests ();
+ predict_c_tests ();
/* Run any lang-specific selftests. */
lang_hooks.run_lang_selftests ();