aboutsummaryrefslogtreecommitdiff
path: root/opcodes/openrisc-ibld.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2009-10-19 05:09:44 +0000
committerDoug Evans <dje@google.com>2009-10-19 05:09:44 +0000
commitcedb97b6d0491c7cae2cf559e8a6fc5f1c4aee33 (patch)
tree76c0c84200ee42386e0e9a9183e4faa6102ebbf2 /opcodes/openrisc-ibld.c
parent770c693ca844afacffff4282d48f072154f6c8bc (diff)
downloadgdb-cedb97b6d0491c7cae2cf559e8a6fc5f1c4aee33.zip
gdb-cedb97b6d0491c7cae2cf559e8a6fc5f1c4aee33.tar.gz
gdb-cedb97b6d0491c7cae2cf559e8a6fc5f1c4aee33.tar.bz2
* lm32-opinst.c: Regenerate.
* m32c-desc.c: Regenerate. * m32r-opinst.c: Regenerate. * openrisc-ibld.c: Regenerate. * xc16x-desc.c: Regenerate. * xc16x-desc.h: Regenerate.
Diffstat (limited to 'opcodes/openrisc-ibld.c')
-rw-r--r--opcodes/openrisc-ibld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/openrisc-ibld.c b/opcodes/openrisc-ibld.c
index 8b3dd9c..2459419 100644
--- a/opcodes/openrisc-ibld.c
+++ b/opcodes/openrisc-ibld.c
@@ -568,7 +568,7 @@ openrisc_cgen_insert_operand (CGEN_CPU_DESC cd,
case OPENRISC_OPERAND_ABS_26 :
{
long value = fields->f_abs26;
- value = ((unsigned int) (pc) >> (2));
+ value = ((int) (pc) >> (2));
errmsg = insert_normal (cd, value, 0|(1<<CGEN_IFLD_SIGNED)|(1<<CGEN_IFLD_ABS_ADDR), 0, 25, 26, 32, total_length, buffer);
}
break;
@@ -606,7 +606,7 @@ openrisc_cgen_insert_operand (CGEN_CPU_DESC cd,
case OPENRISC_OPERAND_UI16NC :
{
{
- FLD (f_i16_2) = ((((unsigned int) (FLD (f_i16nc)) >> (11))) & (31));
+ FLD (f_i16_2) = ((((int) (FLD (f_i16nc)) >> (11))) & (31));
FLD (f_i16_1) = ((FLD (f_i16nc)) & (2047));
}
errmsg = insert_normal (cd, fields->f_i16_1, 0, 0, 10, 11, 32, total_length, buffer);