Aurelien Buhrig | 30 May 2012 11:41
Picon

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


Gmane