This is the mail archive of the cgen@sources.redhat.com 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]

bad shifts generated in sim code


I found these in sim/m32r/decodex.c

          unsigned int val = (((insn >> -8) & (3 << 0)));

          unsigned int val = (((insn >> -12) & (1 << 0)));

Someone want to fess up?


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