Commit 9a52433e by Kazu Hirata Committed by Kazu Hirata

h8300.c (print_operand): Remove support for unused operand characters.

	* confiig/h8300/h8300.c (print_operand): Remove support for
	unused operand characters.

From-SVN: r48871
parent 8e2e89f7
2002-01-15 Kazu Hirata <kazu@hxi.com>
* confiig/h8300/h8300.c (print_operand): Remove support for
unused operand characters.
2002-01-15 Kazu Hirata <kazu@hxi.com>
* read-rtl.c: Fix formatting.
* real.c: Likewise.
* recog.c: Likewise.
......
......@@ -938,12 +938,9 @@ const_costs (r, c)
/* Documentation for the machine specific operand escapes:
'A' print rn in H8/300 mode, erN in H8/300H mode
'C' print (operand - 2).
'E' like s but negative.
'F' like t but negative.
'G' constant just the negative
'M' turn a 'M' constant into its negative mod 2.
'P' if operand is incing/decing sp, print .w, otherwise .b.
'R' print operand as a byte:8 address if appropriate, else fall back to
'X' handling.
'S' print operand as a long word
......@@ -956,13 +953,10 @@ const_costs (r, c)
If this operand isn't a register, fall back to 'R' handling.
'Z' print int & 7.
'b' print the bit opcode
'c' print the ibit opcode
'd' bcc if EQ, bcs if NE
'e' first word of 32 bit value - if reg, then least reg. if mem
then least. if const then most sig word
'f' second word of 32 bit value - if reg, then biggest reg. if mem
then +2. if const then least sig word
'g' bcs if EQ, bcc if NE
'j' print operand as condition code.
'k' print operand as reverse condition code.
's' print as low byte of 16 bit value
......@@ -1029,9 +1023,6 @@ print_operand (file, x, code)
else
goto def;
break;
case 'C':
fprintf (file, "#%d", INTVAL (x) - 2);
break;
case 'E':
switch (GET_CODE (x))
{
......@@ -1063,38 +1054,6 @@ print_operand (file, x, code)
abort ();
fprintf (file, "#%d", 0xff & (-INTVAL (x)));
break;
case 'M':
/* For 3/-3 and 4/-4, the other 2 is handled separately. */
switch (INTVAL (x))
{
case 2:
case 4:
case -2:
case -4:
fprintf (file, "#2");
break;
case 1:
case 3:
case -1:
case -3:
fprintf (file, "#1");
break;
default:
abort ();
}
break;
case 'P':
if (REGNO (XEXP (XEXP (x, 0), 0)) == STACK_POINTER_REGNUM)
{
last_p = "";
fprintf (file, ".w");
}
else
{
last_p = "l";
fprintf (file, ".b");
}
break;
case 'S':
if (GET_CODE (x) == REG)
fprintf (file, "%s", names_extended[REGNO (x)]);
......@@ -1158,35 +1117,6 @@ print_operand (file, x, code)
break;
}
break;
case 'c':
switch (GET_CODE (x))
{
case IOR:
fprintf (file, "bior");
break;
case XOR:
fprintf (file, "bixor");
break;
case AND:
fprintf (file, "biand");
break;
default:
break;
}
break;
case 'd':
switch (GET_CODE (x))
{
case EQ:
fprintf (file, "bcc");
break;
case NE:
fprintf (file, "bcs");
break;
default:
abort ();
}
break;
case 'e':
switch (GET_CODE (x))
{
......@@ -1245,19 +1175,6 @@ print_operand (file, x, code)
abort ();
}
break;
case 'g':
switch (GET_CODE (x))
{
case NE:
fprintf (file, "bcc");
break;
case EQ:
fprintf (file, "bcs");
break;
default:
abort ();
}
break;
case 'j':
asm_fprintf (file, cond_string (GET_CODE (x)));
break;
......
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