Bug 3184 - gas doesn't handle nig integers correctly
Summary: gas doesn't handle nig integers correctly
Status: RESOLVED WORKSFORME
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: pre-2.15
: P2 critical
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-07 09:07 UTC by Miro Kropacek
Modified: 2022-06-22 06:24 UTC (History)
1 user (show)

See Also:
Host: m68k/freemint
Target: m68k/freemint
Build: m68k/freemint
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miro Kropacek 2006-09-07 09:07:27 UTC
Concretly, this bug applies to 2.13.2.1-2 version for FreeMiNT distribution 
(http://sparemint.atariforge.net/sparemint/html/packages/binutils.html).

Try this:

fmove.l #65536*32768,register

after you assemble it for m68k (I used -m68020-60 switch) the result is crap 
(bad number in fp0). I have to write this instead:

fmove.l #32768,d0
swap d0
fmove.l d0,fp0

or (i'm not sure, though)

fmove.l #0x80000000,fp0

(it seems like integer overflow with numbers > 2^31)

I do apologize if this bug was already fixed but I'm new to all this bug 
reporting...
Comment 1 Alan Modra 2006-09-13 06:16:12 UTC
works on mainline