From a48a6f230136440b2e57eb704f3fa83af60df0d9 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Thu, 19 Feb 1998 00:39:38 +0000 Subject: [PATCH] Allow FAKE arguments to have a parser handler. --- gas/config/tc-dvp.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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; -- 2.30.2