diff options
author | Doug Evans <dje@google.com> | 1998-07-21 23:46:56 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 1998-07-21 23:46:56 +0000 |
commit | b00ea55caf2a3e160e549bc641422da0c6f75adb (patch) | |
tree | d91f6024a0d80ed14d3717073fd7913e9eef86c8 /opcodes | |
parent | cac4e5a48186dcf95f43c9096d1c18a1c8aa091c (diff) | |
download | gdb-b00ea55caf2a3e160e549bc641422da0c6f75adb.zip gdb-b00ea55caf2a3e160e549bc641422da0c6f75adb.tar.gz gdb-b00ea55caf2a3e160e549bc641422da0c6f75adb.tar.bz2 |
regenerate, get displacement operand shifts right
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/m32r-asm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/opcodes/m32r-asm.c b/opcodes/m32r-asm.c index 8f73dc5..0531c64 100644 --- a/opcodes/m32r-asm.c +++ b/opcodes/m32r-asm.c @@ -394,21 +394,21 @@ m32r_cgen_insert_operand (opindex, fields, buffer, pc) case M32R_OPERAND_DISP8 : { long value = fields->f_disp8; - value = ((((value) - (((pc) & (-4))))) >> (2)); + value = ((int) (((value) - (((pc) & (-4))))) >> (2)); errmsg = insert_normal (value, 0|(1<<CGEN_OPERAND_RELAX)|(1<<CGEN_OPERAND_RELOC)|(1<<CGEN_OPERAND_PCREL_ADDR), 8, 8, CGEN_FIELDS_BITSIZE (fields), buffer); } break; case M32R_OPERAND_DISP16 : { long value = fields->f_disp16; - value = ((((value) - (pc))) >> (2)); + value = ((int) (((value) - (pc))) >> (2)); errmsg = insert_normal (value, 0|(1<<CGEN_OPERAND_RELOC)|(1<<CGEN_OPERAND_PCREL_ADDR), 16, 16, CGEN_FIELDS_BITSIZE (fields), buffer); } break; case M32R_OPERAND_DISP24 : { long value = fields->f_disp24; - value = ((((value) - (pc))) >> (2)); + value = ((int) (((value) - (pc))) >> (2)); errmsg = insert_normal (value, 0|(1<<CGEN_OPERAND_RELAX)|(1<<CGEN_OPERAND_RELOC)|(1<<CGEN_OPERAND_PCREL_ADDR), 8, 24, CGEN_FIELDS_BITSIZE (fields), buffer); } break; |