summaryrefslogtreecommitdiff
path: root/opcodes/iq2000-ibld.c
diff options
context:
space:
mode:
authorDoug Evans <dje@sebabeach.org>2010-01-07 18:05:45 +0000
committerDoug Evans <dje@sebabeach.org>2010-01-07 18:05:45 +0000
commit18e3e1d0d0634b8a84fe6f54f06615aed9a4ec9c (patch)
tree39308c93502245c84e30219173f2e6a53f8dc1b3 /opcodes/iq2000-ibld.c
parent2c9d04e1291934124d6c017d621c2f2451d91b14 (diff)
downloadbinutils-redhat-18e3e1d0d0634b8a84fe6f54f06615aed9a4ec9c.tar.gz
* cgen-ibld.in (insert_normal, extract_normal): Minor cleanup.
* fr30-ibld.c, * frv-ibld.c, * ip2k-ibld.c, * iq2000-ibld.c, * lm32-ibld.c, * m32c-ibld.c, * m32r-ibld.c, * mep-ibld.c, * mt-ibld.c, * openrisc-ibld.c, * xc16x-ibld.c, * xstormy16-ibld.c: Regenerate.
Diffstat (limited to 'opcodes/iq2000-ibld.c')
-rw-r--r--opcodes/iq2000-ibld.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/opcodes/iq2000-ibld.c b/opcodes/iq2000-ibld.c
index c6fa653b6e..8f5673309f 100644
--- a/opcodes/iq2000-ibld.c
+++ b/opcodes/iq2000-ibld.c
@@ -138,7 +138,7 @@ insert_normal (CGEN_CPU_DESC cd,
if (length == 0)
return NULL;
- if (word_length > 32)
+ if (word_length > 8 * sizeof (CGEN_INSN_INT))
abort ();
/* For architectures with insns smaller than the base-insn-bitsize,
@@ -442,7 +442,7 @@ extract_normal (CGEN_CPU_DESC cd,
return 1;
}
- if (word_length > 32)
+ if (word_length > 8 * sizeof (CGEN_INSN_INT))
abort ();
/* For architectures with insns smaller than the insn-base-bitsize,
@@ -469,7 +469,7 @@ extract_normal (CGEN_CPU_DESC cd,
{
unsigned char *bufp = ex_info->insn_bytes + word_offset / 8;
- if (word_length > 32)
+ if (word_length > 8 * sizeof (CGEN_INSN_INT))
abort ();
if (fill_cache (cd, ex_info, word_offset / 8, word_length / 8, pc) == 0)