mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-20 15:53:29 +08:00
WebAssembly disassembler support
* wasm32-dis.c (print_insn_wasm32): Avoid DECIMAL_DIG, specify appropriate floating-point precision directly.
This commit is contained in:
parent
8473b4472d
commit
aa80870703
@ -1,3 +1,8 @@
|
|||||||
|
2017-04-09 Pip Cet <pipcet@gmail.com>
|
||||||
|
|
||||||
|
* wasm32-dis.c (print_insn_wasm32): Avoid DECIMAL_DIG, specify
|
||||||
|
appropriate floating-point precision directly.
|
||||||
|
|
||||||
2017-04-07 Alan Modra <amodra@gmail.com>
|
2017-04-07 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* ppc-opc.c (powerpc_opcodes <mviwsplt, mvidsplt, lvexbx, lvepxl,
|
* ppc-opc.c (powerpc_opcodes <mviwsplt, mvidsplt, lvexbx, lvepxl,
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
#include "opintl.h"
|
#include "opintl.h"
|
||||||
#include "safe-ctype.h"
|
#include "safe-ctype.h"
|
||||||
#include "floatformat.h"
|
#include "floatformat.h"
|
||||||
#include <float.h>
|
|
||||||
#include "libiberty.h"
|
#include "libiberty.h"
|
||||||
#include "elf-bfd.h"
|
#include "elf-bfd.h"
|
||||||
#include "elf/internal.h"
|
#include "elf/internal.h"
|
||||||
@ -405,7 +404,7 @@ print_insn_wasm32 (bfd_vma pc, struct disassemble_info *info)
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return -1;
|
return -1;
|
||||||
len += ret;
|
len += ret;
|
||||||
prin (stream, " %.*g", DECIMAL_DIG, fconstant);
|
prin (stream, " %.9g", fconstant);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case wasm_constant_f64:
|
case wasm_constant_f64:
|
||||||
@ -413,7 +412,7 @@ print_insn_wasm32 (bfd_vma pc, struct disassemble_info *info)
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return -1;
|
return -1;
|
||||||
len += ret;
|
len += ret;
|
||||||
prin (stream, " %.*g", DECIMAL_DIG, fconstant);
|
prin (stream, " %.17g", fconstant);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case wasm_call:
|
case wasm_call:
|
||||||
|
Loading…
Reference in New Issue
Block a user