From: Doug Evans Date: Thu, 19 Feb 1998 00:39:38 +0000 (+0000) Subject: Allow FAKE arguments to have a parser handler. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a48a6f230136440b2e57eb704f3fa83af60df0d9;p=binutils-gdb.git Allow FAKE arguments to have a parser handler. --- diff --git a/gas/config/tc-dvp.c b/gas/config/tc-dvp.c index e7cfc69298a..38580ffb7dd 100644 --- a/gas/config/tc-dvp.c +++ b/gas/config/tc-dvp.c @@ -607,11 +607,20 @@ assemble_one_insn (cpu, opcode, operand_table, pstr, insn_buf) if (operand->flags & DVP_OPERAND_FAKE) { + long value = 0; + if (operand->parse) + { + errmsg = NULL; + value = (*operand->parse) (opcode, operand, mods, + &str, &errmsg); + if (errmsg) + break; + } if (operand->insert) { errmsg = NULL; - (*operand->insert) (opcode, operand, mods, insn_buf, 0, - &errmsg); + (*operand->insert) (opcode, operand, mods, insn_buf, + (offsetT) value, &errmsg); /* If we get an error, go on to try the next insn. */ if (errmsg) break;