Come up with selftests for predict.c.
authorMartin Liska <mliska@suse.cz>
Fri, 9 Jun 2017 07:38:52 +0000 (09:38 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 9 Jun 2017 07:38:52 +0000 (07:38 +0000)
commitd88382176e53eca7552e29b7bb88ae4efd72a39d
treee7548f278250e87e028751c87a71c1597f22efae
parent1ee77fbdea58944b047de8ff88901aea4e93ed7d
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
gcc/ChangeLog
gcc/predict.c
gcc/selftest-run-tests.c
gcc/selftest.h