This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [m68k] fix denorm mult


Nathan Sidwell <nathan@codesourcery.com> writes:

> The 'movew imm,reg' instruction only sets the bottom 16 bits of reg.  This led 
> to a problem in mulsf3 when the second operand was a denormal -- we'd end up 
> with an iteration count of 0xffff0017 instead of 0x17.

The real bug is that DBcc was not correctly replaced for the coldfire.
DBcc is a word operation, but for the coldfire it was replaced by a long
operation.  Thus on the m68k everything works correctly.

> I went through lb1sf68 auditing all the uses of 'movew imm', replacing
> them with moveq where appropriate.

On the other hand, moveq is faster (on some models) and smaller than
movew, so this is ok.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]