aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl-tests.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2016-12-19 15:24:47 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2016-12-19 15:24:47 +0000
commit596762ee4b98c9c6bcd2b3f0bd67e2c5f5cae6ed (patch)
treef2cb174e38ee4d5bc051c252a7398173f5d31405 /gcc/rtl-tests.c
parentdc31c238bd382061196e8e9f4f68057feac4ee9b (diff)
downloadgcc-596762ee4b98c9c6bcd2b3f0bd67e2c5f5cae6ed.zip
gcc-596762ee4b98c9c6bcd2b3f0bd67e2c5f5cae6ed.tar.gz
gcc-596762ee4b98c9c6bcd2b3f0bd67e2c5f5cae6ed.tar.bz2
print-rtl.c: use '<' and '>' rather than % for pseudos in compact mode
gcc/ChangeLog: * print-rtl.c (rtx_writer::print_rtx_operand_code_r): For non-virtual pseudos in compact mode, wrap the regno in '<' and '>' rather than using a '%' prefix. * rtl-tests.c (selftest::test_dumping_regs): Update for above change. From-SVN: r243798
Diffstat (limited to 'gcc/rtl-tests.c')
-rw-r--r--gcc/rtl-tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rtl-tests.c b/gcc/rtl-tests.c
index 8edddfb..57f9e14 100644
--- a/gcc/rtl-tests.c
+++ b/gcc/rtl-tests.c
@@ -104,9 +104,9 @@ test_dumping_regs ()
}
/* Test dumping of non-virtual pseudos. */
- ASSERT_RTL_DUMP_EQ ("(reg:SI %0)",
+ ASSERT_RTL_DUMP_EQ ("(reg:SI <0>)",
gen_raw_REG (SImode, LAST_VIRTUAL_REGISTER + 1));
- ASSERT_RTL_DUMP_EQ ("(reg:SI %1)",
+ ASSERT_RTL_DUMP_EQ ("(reg:SI <1>)",
gen_raw_REG (SImode, LAST_VIRTUAL_REGISTER + 2));
}