This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: problem with bad code generated by m68k cross compiler
- To: Greg Ungerer <gerg at moreton dot com dot au>
- Subject: Re: problem with bad code generated by m68k cross compiler
- From: Jeffrey A Law <law at hurl dot cygnus dot com>
- Date: Sat, 13 Feb 1999 23:49:56 -0700
- cc: egcs-bugs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <36BA3237.6032161@moreton.com.au>you write:
> de: 2072 2c00 moveal %a2@(00000000,%d2:l:4),%a0
> e2: 2028 0020 movel %a0@(32),%d0
> e6: 7a09 moveq #9,%d5
> e8: eaa8 lsrl %d5,%d0
> ea: 4c00 0800 mulsl %d0,%d0
> ee: 2140 0008 movel %d0,%a0@(8)
Odd. I get:
move.l (%a2,%d2.l*4),%a0
move.l 32(%a0),%d0
moveq.l #9,%d5
lsr.l %d5,%d0
muls.l (%a0),%d0
move.l %d0,8(%a0)
You might verify that the assembly file produced by gcc matches the diassembly
produced by gdb/objdump.
jeff