This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
problem with derived operands
- To: cgen at sources dot redhat dot com
- Subject: problem with derived operands
- From: Johan Rydberg <johan dot rydberg at netinsight dot se>
- Date: Tue, 03 Oct 2000 21:46:37 +0200
- Organization: Net Insight AB
Hi!
I'm trying to implement (another) CPU description with CGEN.
I have ran into some problems with derived operands. I have
the following fields;
(dnf f-const-op1 "const op 1" () 7 8)
the following operands;
(define-operand
(name const-base)
(comment "base constant or something")
(mode QI)
(type h-uint)
(index f-const-op1)
)
(dndo const-8
QI
(const-base)
"${const-base}"
f-const-op1
(+ const-base)
()
const-base
() ; no setter
)
When I'm trying to use the ''const-8'' field within a insn,
I get the following error;
ERROR: Unbound variable: op-ifld
Here's the insn definition;
(dni bipush "bipush"
()
"bipush ${const-8}"
(+ OC_16 const-8)
(sequence()
(set (mem QI (reg h-gr 14)) const-8)
(set (reg h-gr 14) (sub (reg h-gr 14) (const 4)))
)
()
)
Can anyone tell me what I do wrong ?
--
Johan Rydberg johan.rydberg@netinsight.net
Net Insight AB, Sweden direct: +46-8-685 04 17
http://www.netinsight.net phone: +46-8-685 04 00
fax: +46-8-685 04 20