Skip to content

Commit

Permalink
2010-06-16 Vincent Rivire <[email protected]>
Browse files Browse the repository at this point in the history
        PR binutils/11676
        * m68k-dis.c (print_insn_arg): Prefix float constants with #0e.

2010-06-16  Nick Clifton  <[email protected]>

        PR binutils/11676
        * gas/m68k/pr11676.s: New test.
        * gas/m68k/pr11676.d: Expected disassembly.
        * gas/m68k/all.exp: Run the new test.
  • Loading branch information
nickclifton committed Jun 16, 2010
1 parent 81efa4e commit 09ec0d1
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 1 deletion.
7 changes: 7 additions & 0 deletions gas/testsuite/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2010-06-16 Nick Clifton <[email protected]>

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 <[email protected]>

* gas/elf/elf.exp: Set target_machine for tic6x-*-*.
Expand Down
2 changes: 2 additions & 0 deletions gas/testsuite/gas/m68k/all.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions gas/testsuite/gas/m68k/pr11676.d
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions gas/testsuite/gas/m68k/pr11676.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.text
.global foo
foo:
fmoves #0e1.23,%fp0
5 changes: 5 additions & 0 deletions opcodes/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2010-06-16 Vincent Rivière <[email protected]>

PR binutils/11676
* m68k-dis.c (print_insn_arg): Prefix float constants with #0e.

2010-06-14 Sebastian Andrzej Siewior <[email protected]>

* ppc-dis.c (ppc_opts): Remove PPC_OPCODE_E500MC from e500 and
Expand Down
2 changes: 1 addition & 1 deletion opcodes/m68k-dis.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 09ec0d1

Please sign in to comment.