Re: Possible issue with using LAST_INSN_CODE

2015-08-20 Thread Richard Sandiford
Jeff Law writes: > On 08/20/2015 11:28 AM, Claudiu Zissulescu wrote: >> Hi Jeff, >> >> In the gencodes.c:89, it explicitly decrements by one the return >> value of get_num_insn_codes(). While for the get_num_insn_codes is >> stated this: >> >> /* Return the number of possible INSN_CODEs. Only me

Re: Possible issue with using LAST_INSN_CODE

2015-08-20 Thread Jeff Law
On 08/20/2015 11:28 AM, Claudiu Zissulescu wrote: Hi Jeff, In the gencodes.c:89, it explicitly decrements by one the return value of get_num_insn_codes(). While for the get_num_insn_codes is stated this: /* Return the number of possible INSN_CODEs. Only meaningful once the whole file has

Re: Possible issue with using LAST_INSN_CODE

2015-08-20 Thread Claudiu Zissulescu
Hi Jeff, In the gencodes.c:89, it explicitly decrements by one the return value of get_num_insn_codes(). While for the get_num_insn_codes is stated this: /* Return the number of possible INSN_CODEs. Only meaningful once the whole file has been processed. */ I can provide an example for the

Re: Possible issue with using LAST_INSN_CODE

2015-08-20 Thread Jeff Law
On 08/20/2015 02:54 AM, Claudiu Zissulescu wrote: Hi, The LAST_INSN_CODE is used to mark the last instruction code valid for a particular architecture (e.g., For ARM the value of LAST_INSN_CODE is 3799). Also this code (i.e., 3799) is used by a predicated instruction (e.g., for ARM this code is