Come up with selftests for predict.c.
commit71e39b3b87aa84534687b7c827f0edbf440e2703
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Jun 2017 07:38:52 +0000 (9 07:38 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Jun 2017 07:38:52 +0000 (9 07:38 +0000)
treee7548f278250e87e028751c87a71c1597f22efae
parent26caae14908069efbb8617ee5f365afd6d4d1132
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249048 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/predict.c
gcc/selftest-run-tests.c
gcc/selftest.h