summaryrefslogtreecommitdiff
path: root/opcodes/openrisc-ibld.c
diff options
context:
space:
mode:
authorDoug Evans <dje@sebabeach.org>2009-10-19 05:09:43 +0000
committerDoug Evans <dje@sebabeach.org>2009-10-19 05:09:43 +0000
commit717343b1b008acff1d4a8780d422be0735150636 (patch)
treeb4696f12f17453c17338b0346c646079114288ab /opcodes/openrisc-ibld.c
parent92cb50495953dd6efaf69c57b69405d82dfc43b3 (diff)
downloadbinutils-redhat-717343b1b008acff1d4a8780d422be0735150636.tar.gz
* 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 8b3dd9c444..2459419370 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);