bug report: m68k-coff-as for coldfire, binutils-2.9.1
Rolf Fiedler
Rolf.Fiedler@ferrari.de
Thu Feb 4 07:25:00 GMT 1999
Hello again,
replying to my own post...
I fixed the gas bug. a patch is enclosed.... I would ask the binutils
maintainer
to merge the patch into the official source tree.
and here is the patch...
---------------------------------------------
rfie@pontifex:/usr/src/gnu/binutils-2.9.1 > diff opcodes/m68k-opc.c
opcodes/m68k-opc.c.orig
1354c1354,1358
< {"mulsl", two(0046000,004000), two(0177700,0107770), "qsD1",
mcf5200 },
---
> {"mulsl", two(0046000,004000), two(0177700,0107770), "DsD1", mcf5200 },
> {"mulsl", two(0046000,004000), two(0177700,0107770), "asD1", mcf5200 },
> {"mulsl", two(0046000,004000), two(0177700,0107770), "+sD1", mcf5200 },
> {"mulsl", two(0046000,004000), two(0177700,0107770), "-sD1", mcf5200 },
> {"mulsl", two(0046000,004000), two(0177700,0107770), "dsD1", mcf5200 },
1359c1363,1367
< {"mulul", two(0046000,000000), two(0177700,0107770), "qsD1",
mcf5200 },
---
> {"mulul", two(0046000,000000), two(0177700,0107770), "DsD1", mcf5200 },
> {"mulul", two(0046000,000000), two(0177700,0107770), "asD1", mcf5200 },
> {"mulul", two(0046000,000000), two(0177700,0107770), "+sD1", mcf5200 },
> {"mulul", two(0046000,000000), two(0177700,0107770), "-sD1", mcf5200 },
> {"mulul", two(0046000,000000), two(0177700,0107770), "dsD1", mcf5200 },
---------------------------------------------
Rolf Fiedler wrote:
>
> Hi there,
>
> for two days I have been tackling a problem which I had with some
> incorrect behaviour of a C-program of mine. It produced the correct
> results on i386 and A29K platforms, but wrong results on coldfire.
>
> what I thought to be a gcc bug has finally been discovered as a bug in
> m68k-coff-as for coldfire. BTW who is maintaining binutils- is it
> considered
> part of egcs? If anybody knows where this bug report is supposed to be
> submitted, please send me a mail.
>
> ---------8<---------snip--------------------------------------------
> rfie@pontifex:/home/rfie/c-hacks > cat as-bug.s
> .text
> bug: muls.l (%a0)+,%d0
> .end
>
> rfie@pontifex:/home/rfie/c-hacks > m68k-coff-as -v -m5200 as-bug.s -o
> as-bug.o
> GNU assembler version 2.9.1 (m68k-coff)
> rfie@pontifex:/home/rfie/c-hacks > m68k-coff-objdump -d as-bug.o
>
> as-bug.o: file format coff-m68k
>
> Disassembly of section .text:
>
> 00000000 <bug>:
> 0: 4c00 0800 mulsl %d0,%d0
> rfie@pontifex:/home/rfie/c-hacks > m68k-coff-as as-bug.s -o as-bug.o
> rfie@pontifex:/home/rfie/c-hacks > m68k-coff-objdump -d as-bug.o
>
> as-bug.o: file format coff-m68k
>
> Disassembly of section .text:
>
> 00000000 <bug>:
> 0: 4c18 0800 mulsl %a0@+,%d0
> rfie@pontifex:/home/rfie/c-hacks >
> ----------8<------------snip-------------------------------------------
Kind regards,
Rolf
--
+-----------------+--------------------------------------------------+
| _____ | Rolf Fiedler |
| / ___/ | Electronic Design Engineer |
| / _/ | Ferrari electronic AG |
| /_/e/r/r/a/r/i/ | phone: +49 3328 4559 0 fax: +49 3328 4559 60 |
| electronic | E-Mail: Rolf.Fiedler@Ferrari.DE |
+-----------------+--------------------------------------------------+
"Where do you want to go tomorrow?"
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.
More information about the crossgcc
mailing list