cpu/mem.opc whitespace tidy

cpu/
	* mep.opc: Whitespace and formatting.
opcodes/
	* mep-asm.c: Regenerate.
	* mep-dis.c: Regenerate.
This commit is contained in:
Alan Modra
2023-03-16 11:52:09 +10:30
parent 0961e63157
commit 3e8b13bf77
3 changed files with 81 additions and 83 deletions

View File

@@ -682,10 +682,10 @@ expand_macro (arg *args, int narg, const macro *mac)
/* printf("expanding macro %s with %d args\n", mac->name, narg + 1); */ /* printf("expanding macro %s with %d args\n", mac->name, narg + 1); */
while (*e) while (*e)
{ {
if (*e == '`' && if (*e == '`'
(*e+1) && && (*e+1)
((*(e + 1) - '1') <= MAXARGS) && && ((*(e + 1) - '1') <= MAXARGS)
((*(e + 1) - '1') <= narg)) && ((*(e + 1) - '1') <= narg))
{ {
result = str_append (result, mark, e - mark); result = str_append (result, mark, e - mark);
mac_arg = (*(e + 1) - '1'); mac_arg = (*(e + 1) - '1');
@@ -803,7 +803,6 @@ expand_string (const char *in, int first_only)
if (narg > -1) if (narg > -1)
args[narg].len++; args[narg].len++;
} }
} }
++in; ++in;
} }
@@ -958,8 +957,8 @@ mep_print_vliw_insns (CGEN_CPU_DESC cd, bfd_vma pc, disassemble_info *info,
} }
status += my_status; status += my_status;
/* Print the + to indicate that the following copro insn is */ /* Print the + to indicate that the following copro insn is
/* part of a vliw group. */ part of a vliw group. */
if (copro1length > 0) if (copro1length > 0)
(*info->fprintf_func) (info->stream, " + "); (*info->fprintf_func) (info->stream, " + ");
} }

View File

@@ -638,10 +638,10 @@ expand_macro (arg *args, int narg, const macro *mac)
/* printf("expanding macro %s with %d args\n", mac->name, narg + 1); */ /* printf("expanding macro %s with %d args\n", mac->name, narg + 1); */
while (*e) while (*e)
{ {
if (*e == '`' && if (*e == '`'
(*e+1) && && (*e+1)
((*(e + 1) - '1') <= MAXARGS) && && ((*(e + 1) - '1') <= MAXARGS)
((*(e + 1) - '1') <= narg)) && ((*(e + 1) - '1') <= narg))
{ {
result = str_append (result, mark, e - mark); result = str_append (result, mark, e - mark);
mac_arg = (*(e + 1) - '1'); mac_arg = (*(e + 1) - '1');
@@ -759,7 +759,6 @@ expand_string (const char *in, int first_only)
if (narg > -1) if (narg > -1)
args[narg].len++; args[narg].len++;
} }
} }
++in; ++in;
} }

View File

@@ -154,8 +154,8 @@ mep_print_vliw_insns (CGEN_CPU_DESC cd, bfd_vma pc, disassemble_info *info,
} }
status += my_status; status += my_status;
/* Print the + to indicate that the following copro insn is */ /* Print the + to indicate that the following copro insn is
/* part of a vliw group. */ part of a vliw group. */
if (copro1length > 0) if (copro1length > 0)
(*info->fprintf_func) (info->stream, " + "); (*info->fprintf_func) (info->stream, " + ");
} }