* config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n

inside loop.
This commit is contained in:
Joern Rennecke 2002-10-10 13:37:32 +00:00
parent 2030e6d786
commit ac62e7a368
2 changed files with 11 additions and 6 deletions

View file

@ -1,3 +1,8 @@
Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
* config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
inside loop.
2002-10-09 Richard Shann <richard.shann@superh.com>
Stephen Clarke <stephen.clarke@superh.com>

View file

@ -2123,16 +2123,16 @@ assemble_ppi (op_end, opcode)
int move_code;
unsigned int size;
/* Some insn ignore one or more register fields, e.g. psts machl,a0.
Make sure we encode a defined insn pattern. */
reg_x = 0;
reg_y = 0;
reg_n = 0;
for (;;)
{
sh_operand_info operand[3];
/* Some insn ignore one or more register fields, e.g. psts machl,a0.
Make sure we encode a defined insn pattern. */
reg_x = 0;
reg_y = 0;
reg_n = 0;
if (opcode->arg[0] != A_END)
op_end = get_operands (opcode, op_end, operand);
opcode = get_specific (opcode, operand);