diff options
author | Doug Evans <dje@google.com> | 2010-01-06 05:30:19 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2010-01-06 05:30:19 +0000 |
commit | fe8afbc48fd3fba73600670fd2b0fcbfd45c440a (patch) | |
tree | c9237754fd594908f3f099468e86daa793096487 /opcodes/iq2000-ibld.c | |
parent | 7c5b2b7a2509d8cdf94a59cbbb44c13cbe6c6183 (diff) | |
download | gdb-fe8afbc48fd3fba73600670fd2b0fcbfd45c440a.zip gdb-fe8afbc48fd3fba73600670fd2b0fcbfd45c440a.tar.gz gdb-fe8afbc48fd3fba73600670fd2b0fcbfd45c440a.tar.bz2 |
cpu/
* m32c.cpu (f-dsp-32-u24): Fix mode of extract handler.
(f-dsp-40-u20, f-dsp-40-u24): Ditto.
opcodes/
* cgen-ibld.in: #include "cgen/basic-modes.h".
* 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.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/opcodes/iq2000-ibld.c b/opcodes/iq2000-ibld.c index a2c2de1..c6fa653 100644 --- a/opcodes/iq2000-ibld.c +++ b/opcodes/iq2000-ibld.c @@ -33,6 +33,7 @@ #include "symcat.h" #include "iq2000-desc.h" #include "iq2000-opc.h" +#include "cgen/basic-modes.h" #include "opintl.h" #include "safe-ctype.h" @@ -613,14 +614,14 @@ iq2000_cgen_insert_operand (CGEN_CPU_DESC cd, case IQ2000_OPERAND_JMPTARG : { long value = fields->f_jtarg; - value = ((unsigned int) (((value) & (262143))) >> (2)); + value = ((USI) (((value) & (262143))) >> (2)); errmsg = insert_normal (cd, value, 0|(1<<CGEN_IFLD_ABS_ADDR), 0, 15, 16, 32, total_length, buffer); } break; case IQ2000_OPERAND_JMPTARGQ10 : { long value = fields->f_jtargq10; - value = ((unsigned int) (((value) & (8388607))) >> (2)); + value = ((USI) (((value) & (8388607))) >> (2)); errmsg = insert_normal (cd, value, 0|(1<<CGEN_IFLD_ABS_ADDR), 0, 20, 21, 32, total_length, buffer); } break; @@ -645,7 +646,7 @@ iq2000_cgen_insert_operand (CGEN_CPU_DESC cd, case IQ2000_OPERAND_OFFSET : { long value = fields->f_offset; - value = ((int) (((value) - (pc))) >> (2)); + value = ((SI) (((value) - (pc))) >> (2)); errmsg = insert_normal (cd, value, 0|(1<<CGEN_IFLD_SIGNED)|(1<<CGEN_IFLD_PCREL_ADDR), 0, 15, 16, 32, total_length, buffer); } break; |