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]

Difference in Opcodes


Hi,

Why is it that the opcodes generated by CGEN in
arm-opc.c and the opcodes written in tc-arm.c for the
same insn different. e.g.
in tc-arm.c, the opcode for instruction 
          add $rd,$rs,$rn
is "0x0000" and in arm-opc.c (the one generated by
CGEN), the value is "0x1800".

Can any one tell me how are the opcode values
generated by CGEN? Moreover, how can the two values
produce the same results? Thirdly, how is the
semantics field in define-normal-insn interperated and
where is it output?

Regards

Shehryar

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com


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