This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
Insns with similar mnemonics
- From: Jan Zizka <janzizka at yahoo dot com>
- To: cgen at sources dot redhat dot com
- Date: Tue, 10 Jun 2003 04:21:37 -0700 (PDT)
- Subject: Insns with similar mnemonics
Hi!
I have a small problem with correcly assembling following insns (only examle):
move x:(r0+symbol1),x0
move x:symbol2,x0
since the pharenteses might be aswell part of a symbol the first instruction is
interpreted as it would be second one. This will of course make r0, which is
really a register, undefined symbol. Now I have added my own parse function for
that, but it's really not elegat :(. Any suggestions? See my insn definitions
below:
(dni move13meml/allreg "move x:(Rn+xxxx),DDDDD"
()
("move x:($r+$imm16),$d5cap")
(+ (f-op-4 #xF) d5cap (f-op-bit-2/6 #x10) r imm16)
()
()
)
(dni move14mem/allreg "move x:imm16,DDDDD"
()
("move x:$imm16,$d5cap")
(+ (f-op-4 #xF) d5cap (f-op--7 #x54) imm16)
()
()
)
Thanks!
Jan