diff options
Diffstat (limited to 'opcodes/xc16x-ibld.c')
-rw-r--r-- | opcodes/xc16x-ibld.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/opcodes/xc16x-ibld.c b/opcodes/xc16x-ibld.c index f2b2701..e93dbba 100644 --- a/opcodes/xc16x-ibld.c +++ b/opcodes/xc16x-ibld.c @@ -154,7 +154,7 @@ insert_normal (CGEN_CPU_DESC cd, { long minval = - (1L << (length - 1)); unsigned long maxval = mask; - + if ((value > 0 && (unsigned long) value > maxval) || value < minval) { @@ -192,7 +192,7 @@ insert_normal (CGEN_CPU_DESC cd, { long minval = - (1L << (length - 1)); long maxval = (1L << (length - 1)) - 1; - + if (value < minval || value > maxval) { sprintf @@ -973,12 +973,12 @@ xc16x_cgen_extract_operand (CGEN_CPU_DESC cd, return length; } -cgen_insert_fn * const xc16x_cgen_insert_handlers[] = +cgen_insert_fn * const xc16x_cgen_insert_handlers[] = { insert_insn_normal, }; -cgen_extract_fn * const xc16x_cgen_extract_handlers[] = +cgen_extract_fn * const xc16x_cgen_extract_handlers[] = { extract_insn_normal, }; |