bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/3183] gas doesn't handle integers in fp instructions correctly


From: vincent dot riviere at freesbee dot fr
Subject: [Bug gas/3183] gas doesn't handle integers in fp instructions correctly
Date: 7 Jun 2010 21:18:55 -0000

------- Additional Comments From vincent dot riviere at freesbee dot fr  
2010-06-07 21:18 -------
This is not a bug, you used the wrong syntax.

When you write:
        fmove.s #1,fp0
the argument is the binary pattern of the single precision value, and it is 
not what you expect.
For example, the pattern of 1.0f is 0x3f800000. So the following instruction 
is valid and do what you want:
        fmove.s #0x3f800000,fp0
Of course it is not user-friendly.

If you want to use floating-point constants, you must use the 0e prefix. The 
following example is what you expect:
        fmoves #0e1,fp0
It is strictly equivalent to the previous example.

See the documentation here:
http://sourceware.org/binutils/docs-2.20/as/Flonums.html

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


http://sourceware.org/bugzilla/show_bug.cgi?id=3183

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]