This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

Problem with GNU as giving invalid instr for m5307


I have a project that I am trying to convert over from the Microtec tools to
GNU.  I've got almost everything working, but on one assembler file I am
getting a strange error.

The GNU tools (binutils incl. as and gcc) are configured for m68k-coff and
running on Solaris.  as version is 2.10.1

I am compiling a assembler source for a Coldfire 5307 target.  The source
assembles properly on the Microtec tools and I can get the results running
properly on the target hardware.  But for some reason GNU as tells me that
some of the instructions are invalid for the target.

command line:
m68k-coff-as -M -m5307 file.s
(I tried -m5200 first, as -m5307 was not mentioned in the manual, but same
errors. -M is in there to be in the MRI compatibility mode, very necessary
unless I want to get an error on almost every line)

for 4 lines in a 600+ line file I get the following error:
'Error: invalid instruction for this architecture; needs 68000 or higher'

The instructions in question:
'cmp d3,d1'
'andi #inton,d0'
'adda #16,a0'
'andi #$7FF,d0'

These instructions ARE valid for the 5307 (I checked the manual).

Anyone have some ideas?

Thanks in advance,
- Steve

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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