Commit bdd4c95a by Richard Kenner

(print_operand): Support unsigned codes for %D, %c, and %d.

From-SVN: r12744
parent d1e03f31
...@@ -1420,43 +1420,28 @@ print_operand (file, x, code) ...@@ -1420,43 +1420,28 @@ print_operand (file, x, code)
fprintf (file, "%ld", (64 - INTVAL (x)) / 8); fprintf (file, "%ld", (64 - INTVAL (x)) / 8);
break; break;
case 'C': case 'C': case 'D': case 'c': case 'd':
/* Write out comparison name. */ /* Write out comparison name. */
if (GET_RTX_CLASS (GET_CODE (x)) != '<') {
output_operand_lossage ("invalid %%C value"); enum rtx_code c = GET_CODE (x);
if (GET_CODE (x) == LEU) if (GET_RTX_CLASS (c) != '<')
fprintf (file, "ule"); output_operand_lossage ("invalid %%C value");
else if (GET_CODE (x) == LTU)
fprintf (file, "ult"); if (code == 'D')
else c = reverse_condition (c);
fprintf (file, "%s", GET_RTX_NAME (GET_CODE (x))); else if (code == 'c')
break; c = swap_condition (c);
else if (code == 'd')
case 'D': c = swap_condition (reverse_condition (c));
/* Similar, but write reversed code. We can't get an unsigned code
here. */ if (c == LEU)
if (GET_RTX_CLASS (GET_CODE (x)) != '<') fprintf (file, "ule");
output_operand_lossage ("invalid %%D value"); else if (c == LTU)
fprintf (file, "ult");
fprintf (file, "%s", GET_RTX_NAME (reverse_condition (GET_CODE (x)))); else
break; fprintf (file, "%s", GET_RTX_NAME (c));
}
case 'c':
/* Similar to `c', but swap. We can't get unsigned here either. */
if (GET_RTX_CLASS (GET_CODE (x)) != '<')
output_operand_lossage ("invalid %%D value");
fprintf (file, "%s", GET_RTX_NAME (swap_condition (GET_CODE (x))));
break;
case 'd':
/* Similar, but reverse and swap. We can't get unsigned here either. */
if (GET_RTX_CLASS (GET_CODE (x)) != '<')
output_operand_lossage ("invalid %%D value");
fprintf (file, "%s",
GET_RTX_NAME (swap_condition (reverse_condition ((GET_CODE (x))))));
break; break;
case 'E': case 'E':
......
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