]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2010-06-16 Vincent Rivire <vincent.riviere@freesbee.fr>
authorNick Clifton <nickc@redhat.com>
Wed, 16 Jun 2010 15:12:51 +0000 (15:12 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 16 Jun 2010 15:12:51 +0000 (15:12 +0000)
        PR binutils/11676
        * m68k-dis.c (print_insn_arg): Prefix float constants with #0e.

2010-06-16  Nick Clifton  <nickc@redhat.com>

        PR binutils/11676
        * gas/m68k/pr11676.s: New test.
        * gas/m68k/pr11676.d: Expected disassembly.
        * gas/m68k/all.exp: Run the new test.

gas/testsuite/ChangeLog
gas/testsuite/gas/m68k/all.exp
gas/testsuite/gas/m68k/pr11676.d [new file with mode: 0644]
gas/testsuite/gas/m68k/pr11676.s [new file with mode: 0644]
opcodes/ChangeLog
opcodes/m68k-dis.c

index 1a5b9f21234e2c442b6b90b9e433212824e96b71..3a9f361eb2bf183d0599af35016153375a45aba3 100644 (file)
@@ -1,3 +1,10 @@
+2010-06-16  Nick Clifton  <nickc@redhat.com>
+
+       PR binutils/11676
+       * gas/m68k/pr11676.s: New test.
+       * gas/m68k/pr11676.d: Expected disassembly.
+       * gas/m68k/all.exp: Run the new test.
+
 2010-06-15  Joseph Myers  <joseph@codesourcery.com>
 
        * gas/elf/elf.exp: Set target_machine for tic6x-*-*.
index 4a935611ec28372270f25c908d0ff4161bac913a..eec16843336b4fe8c14a12dbe9a46a5a8622bc9d 100644 (file)
@@ -91,6 +91,8 @@ if { [istarget m68*-*-*] || [istarget fido*-*-*] } then {
     if { [istarget m68k-*-linux*] } then {
       run_dump_test tls-gd-3
     }
+
+    run_dump_test pr11676
 }
 if [info exists errorInfo] then {
     unset errorInfo
diff --git a/gas/testsuite/gas/m68k/pr11676.d b/gas/testsuite/gas/m68k/pr11676.d
new file mode 100644 (file)
index 0000000..f8f79bc
--- /dev/null
@@ -0,0 +1,9 @@
+#objdump: -d --prefix-addresses
+#name: PR 11676
+
+# Test disassembling of floating point constants.
+
+.*: +file format .*
+
+Disassembly of section .text:
+0+000 <foo>[   ]fmoves #0e1.23,%fp0
diff --git a/gas/testsuite/gas/m68k/pr11676.s b/gas/testsuite/gas/m68k/pr11676.s
new file mode 100644 (file)
index 0000000..3468c6f
--- /dev/null
@@ -0,0 +1,4 @@
+       .text
+       .global foo
+foo:   
+       fmoves  #0e1.23,%fp0
index 8f283dd253d63244dbadecdde67e46c5600e8ecb..c22f0d76920f171e4c76133c14259a3878fcc734 100644 (file)
@@ -1,3 +1,8 @@
+2010-06-16  Vincent Rivière  <vincent.riviere@freesbee.fr>
+
+       PR binutils/11676
+       * m68k-dis.c (print_insn_arg): Prefix float constants with #0e.
+
 2010-06-14  Sebastian Andrzej Siewior  <bigeasy@linutronix.de>
 
        * ppc-dis.c (ppc_opts):  Remove PPC_OPCODE_E500MC from e500 and
index e136a2535c7ec325e421b42497ba01b117a7ab78..0bbf0379d89a19bf5e5dbb2ee2793763edb79c6e 100644 (file)
@@ -1111,7 +1111,7 @@ print_insn_arg (const char *d,
                  return -1;
              }
              if (flt_p)        /* Print a float? */
-               (*info->fprintf_func) (info->stream, "#%g", flval);
+               (*info->fprintf_func) (info->stream, "#0e%g", flval);
              else
                (*info->fprintf_func) (info->stream, "#%d", val);
              break;