diff options
author | DJ Delorie <dj@redhat.com> | 2010-07-03 04:09:56 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2010-07-03 04:09:56 +0000 |
commit | 21375995bd28258d997c67b0736426e5aabc581b (patch) | |
tree | 4d42190503a47f23dead5c280f0464ee04622fb4 /opcodes/m32c-ibld.c | |
parent | 81a0b7e2ae09cfd58f4d9505928ff426e10ade05 (diff) | |
download | gdb-21375995bd28258d997c67b0736426e5aabc581b.zip gdb-21375995bd28258d997c67b0736426e5aabc581b.tar.gz gdb-21375995bd28258d997c67b0736426e5aabc581b.tar.bz2 |
* m32c.cpu (f-dsp-8-s24): Mask high byte after shifting it.
* m32c-ibld.c: Regenerate.
Diffstat (limited to 'opcodes/m32c-ibld.c')
-rw-r--r-- | opcodes/m32c-ibld.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/m32c-ibld.c b/opcodes/m32c-ibld.c index 66fc999..e83d8e0 100644 --- a/opcodes/m32c-ibld.c +++ b/opcodes/m32c-ibld.c @@ -1077,7 +1077,7 @@ m32c_cgen_insert_operand (CGEN_CPU_DESC cd, case M32C_OPERAND_DSP_8_S24 : { long value = fields->f_dsp_8_s24; - value = ((((((USI) (value) >> (16))) | (((value) & (65280))))) | (((EXTQISI (TRUNCSIQI (((value) & (255))))) << (16)))); + value = ((((((((USI) (value) >> (16))) & (255))) | (((value) & (65280))))) | (((EXTQISI (TRUNCSIQI (((value) & (255))))) << (16)))); errmsg = insert_normal (cd, value, 0|(1<<CGEN_IFLD_SIGNED), 0, 8, 24, 32, total_length, buffer); } break; @@ -2234,7 +2234,7 @@ m32c_cgen_extract_operand (CGEN_CPU_DESC cd, { long value; length = extract_normal (cd, ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 0, 8, 24, 32, total_length, pc, & value); - value = ((((((USI) (value) >> (16))) | (((value) & (65280))))) | (((EXTQISI (TRUNCSIQI (((value) & (255))))) << (16)))); + value = ((((((((USI) (value) >> (16))) & (255))) | (((value) & (65280))))) | (((EXTQISI (TRUNCSIQI (((value) & (255))))) << (16)))); fields->f_dsp_8_s24 = value; } break; |