[2/2] Add store merging unit tests
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Tue, 8 Nov 2016 16:04:20 +0000 (16:04 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Tue, 8 Nov 2016 16:04:20 +0000 (16:04 +0000)
commitc22d8787165e1d8f835bfc3a5e5802c286ace31a
treef87abbe64a4b0d2286f097cc546392dda1375be9
parentfad3660129f9fc5563eb2f877598a3cd5269b72a
[2/2] Add store merging unit tests

* gimple-ssa-store-merging.c: Include selftest.h
(verify_array_eq): New function.
(verify_shift_bytes_in_array): Likewise.
(verify_shift_bytes_in_array_right): Likewise.
(verify_clear_bit_region): Likewise.
(verify_clear_bit_region_be): Likewise.
(store_merging_c_tests): Likewise.
* selftest.h (store_merging_c_tests): Declare prototype.
* selftest-run-tests.c (selftest::run_tests): Run
store_merging_c_tests.

From-SVN: r241971
gcc/ChangeLog
gcc/gimple-ssa-store-merging.c
gcc/selftest-run-tests.c
gcc/selftest.h