This is the mail archive of the gcc@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: Testing m68k changes on AmigaOS and Linux/m68k


Gunther Nikl <gni@gecko.de> writes:

> --- m68k.c_	Mon Oct 13 14:39:45 2003
> +++ m68k.c	Thu Oct 16 14:40:41 2003
> @@ -614,6 +614,9 @@ look_for_reg:
>    return 0;
>  }
>  
> +/* Note that the order of the bit mask for fmovem is the opposite
> +   of the order for movem!  */

That's not true for the bits as they are encoded in the opcode.  In both
cases the CPU starts with the highest set bit, which must correspond to
the first register saved/restored.  That means that bit 15/7
(movem/fmovem) of the mask is D0/FP0 for register indirect and
post-increment, and A7/FP7 for pre-decrement.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
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]