[coldfire-gnu-discuss] cannot use movec instruction
Nathan Sidwell
nathan at codesourcery.com
Fri Feb 2 09:18:33 UTC 2007
Ha Luong wrote:
> Dear all,
> I can't use movec instruction when compile and link with mcpu=5485. The
> error is
> C:\DOCUME~1\haluong\LOCALS~1\Temp/ccsbbaaa.s: Assembler messages:
> C:\DOCUME~1\haluong\LOCALS~1\Temp/ccsbbaaa.s:10: Error: operands
> mismatch -- sta
> tement `movec %d0,%ACR0' ignored
> C:\DOCUME~1\haluong\LOCALS~1\Temp/ccsbbaaa.s:10: Error: operands
> mismatch -- sta
> tement `movec %d0,%ACR1' ignored
> My code is:
> __asm__("move.l #0x01040100,%d0");
> __asm__("movec %d0,%CACR");
> But I can use movec instruction with mcpu=5282. I don't know I have any
> mistake.
The error messages you provide mention ACR0 and ACR1. The source code you
provided mentions CACR. I've tried the source you provide, and it compiles
without error. however, I do see that the assembler does not think the m5485
cpu has ACR0 and ACR1. This will be fixed in a later release. Thank you for
reporting the problem.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery
nathan at codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
More information about the coldfire-gnu-discuss
mailing list