Commit 6ce47c07 by Richard Kenner

(print_operand_address): A patch for 2.5.8 ended up at the wrong place.

(print_operand_address): A patch for 2.5.8 ended up at the wrong
place.  Moved.

From-SVN: r7881
parent 879cad45
...@@ -767,6 +767,25 @@ print_operand_address (file, addr) ...@@ -767,6 +767,25 @@ print_operand_address (file, addr)
if (base) if (base)
fprintf (file, "(%s)", reg_names[REGNO (base)]); fprintf (file, "(%s)", reg_names[REGNO (base)]);
#ifdef BASE_REG_NEEDED #ifdef BASE_REG_NEEDED
else if (TARGET_SB)
fprintf (file, "(sb)");
else
abort ();
#endif
fprintf (file, ")");
break;
default:
abort ();
}
#ifdef PC_RELATIVE
else if (GET_CODE (offset) == LABEL_REF
|| GET_CODE (offset) == SYMBOL_REF
|| GET_CODE (offset) == CONST
|| GET_CODE (offset) == PLUS)
fprintf (file, "(pc)");
#endif
#ifdef BASE_REG_NEEDED
else else
{ {
/* Abs. addresses don't need a base (I think). */ /* Abs. addresses don't need a base (I think). */
...@@ -786,26 +805,6 @@ print_operand_address (file, addr) ...@@ -786,26 +805,6 @@ print_operand_address (file, addr)
} }
} }
#endif #endif
fprintf (file, ")");
break;
default:
abort ();
}
#ifdef PC_RELATIVE
else if (GET_CODE (offset) == LABEL_REF
|| GET_CODE (offset) == SYMBOL_REF
|| GET_CODE (offset) == CONST
|| GET_CODE (offset) == PLUS)
fprintf (file, "(pc)");
#endif
#ifdef BASE_REG_NEEDED /* this is defined if the assembler always
needs a base register */
else if (TARGET_SB)
fprintf (file, "(sb)");
else
abort ();
#endif
/* now print index if we have one */ /* now print index if we have one */
if (indexexp) if (indexexp)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment