Patch to add ifield number to cgen_operand (1/2)
Ben Elliston
bje@redhat.com
Sun Jan 28 20:28:00 GMT 2001
Richard,
In cgen_ifield_lookup_by_num, how about testing the assertion that `ifnum'
is within range?
Ben
****************
*** 298,303 ****
--- 298,313 ----
return NULL;
}
+ /* Instruction fields. */
+
+ const CGEN_IFLD *
+ cgen_ifield_lookup_by_num (cd, ifnum)
+ CGEN_CPU_DESC cd;
+ unsigned int ifnum;
+ {
+ return &cd->ifld_table[ifnum];
+ }
+
/* Operand support. */
/* Lookup an operand by its name.
More information about the Cgen
mailing list