aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-sh.c
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@embecosm.com>2002-10-10 13:37:32 +0000
committerJoern Rennecke <joern.rennecke@embecosm.com>2002-10-10 13:37:32 +0000
commitac62e7a36867559d7a8a31a73328ff27278bb122 (patch)
tree94f62903d611302be29ba01e1388f7d2166e5210 /gas/config/tc-sh.c
parent2030e6d786607499a56eeda4a28d2e0c2ba585aa (diff)
downloadgdb-ac62e7a36867559d7a8a31a73328ff27278bb122.zip
gdb-ac62e7a36867559d7a8a31a73328ff27278bb122.tar.gz
gdb-ac62e7a36867559d7a8a31a73328ff27278bb122.tar.bz2
* config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
inside loop.
Diffstat (limited to 'gas/config/tc-sh.c')
-rw-r--r--gas/config/tc-sh.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c
index a2e53d5..936faf9 100644
--- a/gas/config/tc-sh.c
+++ b/gas/config/tc-sh.c
@@ -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);