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

2022-06-22 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=3183

Alan Modra  changed:

   What|Removed |Added

Version|2.13.1  |pre-2.15

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

2010-06-07 Thread vincent dot riviere at freesbee dot fr

--- 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 0x3f80. So the following instruction 
is valid and do what you want:
fmove.s #0x3f80,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.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils