* multi-ifield issue
@ 2012-05-30 9:41 Aurelien Buhrig
0 siblings, 0 replies; only message in thread
From: Aurelien Buhrig @ 2012-05-30 9:41 UTC (permalink / raw)
To: cgen
Hi,
I think there is a bug when defining an instruction with a multi-ifield
in its format.
I defined :
(dnf f-0 "bit 0" () 0 1)
(dnf f-5 "bit 5" () 5 1)
(dsmf f-05 "bit 0 & 5" () (f-0 f-5))
And when I define an insn with the following format:
(+ (f-05 0) F_MISC F_ADOP ADA_RA sreg dreg)
I get :
Performing sanity checks ...
ERROR: Wrong type argument in position 2: 3
No backtrace available.
Everything works fine if I define:
(+ (f-0 0) (f-5 0) F_MISC F_ADOP ADA_RA sreg dreg)
I'm not a scheme expert and was not able to figure out what's wrong...
Cheers,
Aurélien
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-05-30 9:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-30 9:41 multi-ifield issue Aurelien Buhrig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).