This is the mail archive of the
mailing list for the GCC project.
Re: Testing m68k changes on AmigaOS and Linux/m68k
Gunther Nikl <email@example.com> 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 Schwab, SuSE Labs, firstname.lastname@example.org
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."