From mboxrd@z Thu Jan 1 00:00:00 1970 From: Doug Evans To: Stan Cox Cc: cgen@sourceware.cygnus.com Subject: patch for insn size > word size Date: Wed, 04 Apr 2001 11:06:00 -0000 Message-id: <15051.25210.786209.678294@casey.transmeta.com> References: <200104041605.f34G5OP05491@scox.meridian.redhat.com> X-SW-Source: 2001-q2/msg00004.html Stan Cox writes: > This proposed patch adds support for architectures where the insn size > is larger than the word size. The cgen changes adds > CGEN_CPU_WORD_SIZE so it is easy to get this value from C code and > makes insn_value an array. The opcode changes read, print, and insert > each insn word individually. The code assumes if an insn is larger > than the word size, then it is twice as large. Other possibilities are: > 1. check that insn size is twice word size > 2. generalize for an insn that is any multiple of word size > (seems like it may not be worth the effort) > Also tested on an existing port where CGEN_INT_INSN_P is 0 I'd like to think about this one for a day or two.