This is the mail archive of the cgen@sourceware.org mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]