[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/11779] binutils 2.20.51 target m32c encoding error
From: |
daniel dot calcoen at cern dot ch |
Subject: |
[Bug gas/11779] binutils 2.20.51 target m32c encoding error |
Date: |
2 Jul 2010 14:42:14 -0000 |
------- 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.