From 21375995bd28258d997c67b0736426e5aabc581b Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Sat, 3 Jul 2010 04:09:56 +0000 Subject: * m32c.cpu (f-dsp-8-s24): Mask high byte after shifting it. * m32c-ibld.c: Regenerate. --- opcodes/ChangeLog | 4 ++++ opcodes/m32c-ibld.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'opcodes') diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 50489cd..527a93c 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2010-07-03 DJ Delorie + + * m32c-ibld.c: Regenerate. + 2010-07-03 Alan Modra * ppc-opc.c (PWR2COM): Define. 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<> (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; -- cgit v1.1