Start adding selftests for print_rtx
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 21 Oct 2016 13:52:53 +0000 (13:52 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Fri, 21 Oct 2016 13:52:53 +0000 (13:52 +0000)
commite2ce9e83f737d1360167b010fe66fc50cf045307
tree83e521f45ee2d239465d916880470d9b88ade14f
parent6652a944dcf82fe518090e8cb2629b473b70ac5c
Start adding selftests for print_rtx

gcc/ChangeLog:
* print-rtl-function.c (flag_compact): Move extern decl to...
* print-rtl.h (flag_compact): ...here.
* rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
(ASSERT_RTL_DUMP_EQ): New macro.
(selftest::test_dumping_regs): New function.
(selftest::test_dumping_insns): New function.
(selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
the insns.
(selftest::rtl_tests_c_tests): Call the new test functions.

From-SVN: r241405
gcc/ChangeLog
gcc/print-rtl-function.c
gcc/print-rtl.h
gcc/rtl-tests.c