From 1a9e7571227e8d59808ca066c94e694b2168ac61 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 16 Jun 2010 15:12:49 +0000 Subject: [PATCH] 2010-06-16 Vincent Rivire PR binutils/11676 * m68k-dis.c (print_insn_arg): Prefix float constants with #0e. 2010-06-16 Nick Clifton 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 | 7 +++++++ gas/testsuite/gas/m68k/all.exp | 2 ++ gas/testsuite/gas/m68k/pr11676.d | 9 +++++++++ gas/testsuite/gas/m68k/pr11676.s | 4 ++++ opcodes/ChangeLog | 5 +++++ opcodes/m68k-dis.c | 2 +- 6 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 gas/testsuite/gas/m68k/pr11676.d create mode 100644 gas/testsuite/gas/m68k/pr11676.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 1a5b9f212..3a9f361eb 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2010-06-16 Nick Clifton + + 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 * gas/elf/elf.exp: Set target_machine for tic6x-*-*. diff --git a/gas/testsuite/gas/m68k/all.exp b/gas/testsuite/gas/m68k/all.exp index 4a935611e..eec168433 100644 --- a/gas/testsuite/gas/m68k/all.exp +++ b/gas/testsuite/gas/m68k/all.exp @@ -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 index 000000000..f8f79bc21 --- /dev/null +++ b/gas/testsuite/gas/m68k/pr11676.d @@ -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 [ ]fmoves #0e1.23,%fp0 diff --git a/gas/testsuite/gas/m68k/pr11676.s b/gas/testsuite/gas/m68k/pr11676.s new file mode 100644 index 000000000..3468c6f7c --- /dev/null +++ b/gas/testsuite/gas/m68k/pr11676.s @@ -0,0 +1,4 @@ + .text + .global foo +foo: + fmoves #0e1.23,%fp0 diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 8f283dd25..c22f0d769 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2010-06-16 Vincent Rivière + + PR binutils/11676 + * m68k-dis.c (print_insn_arg): Prefix float constants with #0e. + 2010-06-14 Sebastian Andrzej Siewior * ppc-dis.c (ppc_opts): Remove PPC_OPCODE_E500MC from e500 and diff --git a/opcodes/m68k-dis.c b/opcodes/m68k-dis.c index e136a2535..0bbf0379d 100644 --- a/opcodes/m68k-dis.c +++ b/opcodes/m68k-dis.c @@ -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; -- 2.11.4.GIT