+2018-07-09 Maciej W. Rozycki <macro@mips.com>
+
+ * s12z-dis.c (lea_reg_xys_opr): Rename `reg' local variable to
+ `reg_xys'.
+ (lea_reg_xys): Likewise.
+ (print_insn_loop_primitive): Rename `reg' local variable to
+ `reg_dxy'.
+
2018-07-06 Tamar Christina <tamar.christina@arm.com>
PR binutils/23242
if (status < 0)
return;
- char *reg = NULL;
+ char *reg_xys = NULL;
switch (byte & 0x03)
{
case 0x00:
- reg = "x";
+ reg_xys = "x";
break;
case 0x01:
- reg = "y";
+ reg_xys = "y";
break;
case 0x02:
- reg = "s";
+ reg_xys = "s";
break;
}
operand_separator (info);
- (*info->fprintf_func) (info->stream, "%s", reg);
+ (*info->fprintf_func) (info->stream, "%s", reg_xys);
opr_decode (memaddr, info);
}
if (status < 0)
return;
- char *reg = NULL;
+ char *reg_xys = NULL;
switch (byte & 0x03)
{
case 0x00:
- reg = "x";
+ reg_xys = "x";
break;
case 0x01:
- reg = "y";
+ reg_xys = "y";
break;
case 0x02:
- reg = "s";
+ reg_xys = "s";
break;
}
int8_t v = byte;
operand_separator (info);
- (*info->fprintf_func) (info->stream, "%s, (%d,%s)", reg, v, reg);
+ (*info->fprintf_func) (info->stream, "%s, (%d,%s)", reg_xys, v, reg_xys);
}
stpcpy (mnemonic + x, lb_condition [(lb & 0x70) >> 4]);
x += 2;
- const char *reg = NULL;
+ const char *reg_dxy = NULL;
enum LP_MODE mode = -1;
size_t i;
for (i = 0; i < sizeof (lp_mode) / sizeof (lp_mode[0]); ++i)
switch (mode)
{
case LP_REG:
- reg = registers [lb & 0x07].name;
+ reg_dxy = registers [lb & 0x07].name;
break;
case LP_XY:
- reg = (lb & 0x1) ? "y" : "x";
+ reg_dxy = (lb & 0x1) ? "y" : "x";
break;
case LP_OPR:
mnemonic[x++] = '.';
else
{
operand_separator (info);
- (*info->fprintf_func) (info->stream, "%s", reg);
+ (*info->fprintf_func) (info->stream, "%s", reg_dxy);
}
rel_15_7 (memaddr + offs, info, offs + 1);