aboutsummaryrefslogtreecommitdiff
path: root/opcodes/xstormy16-ibld.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2010-01-06 05:30:19 +0000
committerDoug Evans <dje@google.com>2010-01-06 05:30:19 +0000
commitfe8afbc48fd3fba73600670fd2b0fcbfd45c440a (patch)
treec9237754fd594908f3f099468e86daa793096487 /opcodes/xstormy16-ibld.c
parent7c5b2b7a2509d8cdf94a59cbbb44c13cbe6c6183 (diff)
downloadgdb-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/xstormy16-ibld.c')
-rw-r--r--opcodes/xstormy16-ibld.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/opcodes/xstormy16-ibld.c b/opcodes/xstormy16-ibld.c
index 06e2f1a..a734677 100644
--- a/opcodes/xstormy16-ibld.c
+++ b/opcodes/xstormy16-ibld.c
@@ -33,6 +33,7 @@
#include "symcat.h"
#include "xstormy16-desc.h"
#include "xstormy16-opc.h"
+#include "cgen/basic-modes.h"
#include "opintl.h"
#include "safe-ctype.h"
@@ -587,7 +588,7 @@ xstormy16_cgen_insert_operand (CGEN_CPU_DESC cd,
{
{
FLD (f_abs24_1) = ((FLD (f_abs24)) & (255));
- FLD (f_abs24_2) = ((unsigned int) (FLD (f_abs24)) >> (8));
+ FLD (f_abs24_2) = ((UINT) (FLD (f_abs24)) >> (8));
}
errmsg = insert_normal (cd, fields->f_abs24_1, 0, 0, 8, 8, 32, total_length, buffer);
if (errmsg)
@@ -647,7 +648,7 @@ xstormy16_cgen_insert_operand (CGEN_CPU_DESC cd,
case XSTORMY16_OPERAND_REL12A :
{
long value = fields->f_rel12a;
- value = ((int) (((value) - (((pc) + (2))))) >> (1));
+ value = ((SI) (((value) - (((pc) + (2))))) >> (1));
errmsg = insert_normal (cd, value, 0|(1<<CGEN_IFLD_SIGNED)|(1<<CGEN_IFLD_PCREL_ADDR), 0, 4, 11, 32, total_length, buffer);
}
break;