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


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

gas bug (target==coldfire)


Hi there,

yesterday I discovered a bug in the gas for m68k (-m5200, coldfire)
from the cygnus cdk (beta18).

the instruction       movew #nnnn,%sr

is assembled into     $46c0 $nnnn

which is really       movew %d0,%sr
                      $nnnn -> illegal opcode or some other

but it should be      $46fc $nnnn

the workaround for this is simple
movew #nnnn,%d0
movew %d0,%sr

Ok, that's what I found out, now the questions
Has anybody found/fixed that bug yet?
If I would fix it, how can that fix be put in the main gas source tree?

Kind regards,
Rolf

+-----------------+----------------------------------------------------------+
|    _____        |  Rolf Fiedler                                            |
|   / ___/        |  Electronic Design Engineer                              |
|  / _/           |  Ferrari electronic GmbH                                 |
| /_/e/r/r/a/r/i/ |  phone: +49 3328 4559 0  E-Mail: Rolf.Fiedler@Ferrari.DE |
|   electronic    |  fax  : +49 3328 4559 60                                 |
+-----------------+----------------------------------------------------------+