Format inner print loop according to emacs. Code changes will follow

(but be easier to diff).
This commit is contained in:
Michael Tiemann
1991-12-15 20:46:21 +00:00
parent 76b2c3c8cb
commit 76d89cb115

View File

@ -180,32 +180,34 @@ memcpy(&insn,buffer, sizeof (insn));
if (opcode->args[0] != ',') if (opcode->args[0] != ',')
fputs (" ", stream); fputs (" ", stream);
for (s = opcode->args; *s != '\0'; ++s) { for (s = opcode->args; *s != '\0'; ++s)
while (*s == ',') { {
fputs (",", stream); while (*s == ',')
++s; {
fputs (",", stream);
++s;
switch (*s) { switch (*s) {
case 'a': case 'a':
fputs ("a", stream); fputs ("a", stream);
++s; ++s;
continue; continue;
#ifndef NO_V9 #ifndef NO_V9
case 'N': case 'N':
fputs("pn", stream); fputs("pn", stream);
++s; ++s;
continue; continue;
case 'T': case 'T':
fputs("pt", stream); fputs("pt", stream);
++s; ++s;
continue; continue;
#endif /* NO_V9 */ #endif /* NO_V9 */
default: default:
break; break;
} /* switch on arg */ } /* switch on arg */
} /* while there are comma started args */ } /* while there are comma started args */
fputs (" ", stream); fputs (" ", stream);
@ -268,7 +270,7 @@ memcpy(&insn,buffer, sizeof (insn));
case 'h': case 'h':
fprintf (stream, "%%hi(%#x)", fprintf (stream, "%%hi(%#x)",
(unsigned int) insn.imm22 << 10); (unsigned int) insn.imm22 << 10);
break; break;
case 'i': case 'i':
@ -279,7 +281,7 @@ memcpy(&insn,buffer, sizeof (insn));
/* Check to see whether we have a 1+i, and take /* Check to see whether we have a 1+i, and take
note of that fact. note of that fact.
Note: because of the way we sort the table, Note: because of the way we sort the table,
we will be matching 1+i rather than i+1, we will be matching 1+i rather than i+1,
so it is OK to assume that i is after +, so it is OK to assume that i is after +,
@ -309,21 +311,21 @@ memcpy(&insn,buffer, sizeof (insn));
stream); stream);
break; break;
case 'Y': case 'Y':
fputs ("%amr", stream); fputs ("%amr", stream);
break; break;
#endif /* NO_V9 */ #endif /* NO_V9 */
case 'M': case 'M':
fprintf(stream, "%%asr%d", insn.rs1); fprintf(stream, "%%asr%d", insn.rs1);
break; break;
case 'm': case 'm':
fprintf(stream, "%%asr%d", insn.rd); fprintf(stream, "%%asr%d", insn.rd);
break; break;
case 'L': case 'L':
print_address ((bfd_vma) memaddr + insn.disp30 * 4, print_address ((bfd_vma) memaddr + insn.disp30 * 4,
stream); stream);
break; break;
@ -333,7 +335,7 @@ memcpy(&insn,buffer, sizeof (insn));
/* Special case for `unimp'. Don't try to turn /* Special case for `unimp'. Don't try to turn
it's operand into a function offset. */ it's operand into a function offset. */
fprintf (stream, "%#x", fprintf (stream, "%#x",
(unsigned) (((int) insn.disp22 << 10) >> 10)); (unsigned) (((int) insn.disp22 << 10) >> 10));
else else
/* We cannot trust the compiler to sign-extend /* We cannot trust the compiler to sign-extend
when extracting the bitfield, hence the shifts. */ when extracting the bitfield, hence the shifts. */