@@ -352,10 +352,10 @@ lookup_reg_by_dump_name (const char *name)
return VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM;
/* TODO: handle "virtual-reg-%d". */
- /* In compact mode, pseudos are printed with a '%' sigil following
- by the regno, offset by (LAST_VIRTUAL_REGISTER + 1), so that the
- first non-virtual pseudo is dumped as "%0". */
- if (name[0] == '%')
+ /* In compact mode, pseudos are printed with '< and '>' wrapping the regno,
+ offseting it by (LAST_VIRTUAL_REGISTER + 1), so that the
+ first non-virtual pseudo is dumped as "<0>". */
+ if (name[0] == '<' && name[strlen (name) - 1] == '>')
{
int dump_num = atoi (name + 1);
return dump_num + LAST_VIRTUAL_REGISTER + 1;
@@ -1681,8 +1681,8 @@ test_parsing_regnos ()
lookup_reg_by_dump_name ("virtual-preferred-stack-boundary"));
/* Verify lookup of non-virtual pseudos. */
- ASSERT_EQ (LAST_VIRTUAL_REGISTER + 1, lookup_reg_by_dump_name ("%0"));
- ASSERT_EQ (LAST_VIRTUAL_REGISTER + 2, lookup_reg_by_dump_name ("%1"));
+ ASSERT_EQ (LAST_VIRTUAL_REGISTER + 1, lookup_reg_by_dump_name ("<0>"));
+ ASSERT_EQ (LAST_VIRTUAL_REGISTER + 2, lookup_reg_by_dump_name ("<1>"));
}
/* Verify that edge E is as expected, with the src and dest basic blocks