------- Additional Comments From daniel dot calcoen at cern dot ch  2010-07-02 
14:42 -------
the bug is in lines
1080 and 2237 of /opcodes/m32c-ibld.c

both for M32C_OPERAND_DSP_8_S24

the original line

        value = ((((((USI) (value) >> (16))) | (((value) & (65280))))) |
(((EXTQISI (TRUNCSIQI (((value) & (255))))) << (16))));

must be
        value = ((((((((USI) (value) >> (16)) & (255)))) | (((value) &
(65280))))) | (((EXTQISI (TRUNCSIQI (((value) & (255))))) << (16))));


the HiHi byte is not anded (cleared) in the original so is ored later with the
HiLo giving wrong result

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11779

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to