This is the mail archive of the
cgen@sourceware.org
mailing list for the CGEN project.
multi-ifield issue
- From: Aurelien Buhrig <aurelien dot buhrig dot gcc at gmail dot com>
- To: cgen at sourceware dot org
- Date: Wed, 30 May 2012 11:41:14 +0200
- Subject: multi-ifield issue
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