X86: Decode opcode 0x82 as opcode 0x80 in 32-bit mode
[deliverable/binutils-gdb.git] / opcodes / bfin-dis.c
index bf2052e3ed137041864aea75a6e2c9ea5d56835e..0979b6696b03cc4bc2278378c55d42c0b284007f 100644 (file)
@@ -1,5 +1,5 @@
 /* Disassemble ADI Blackfin Instructions.
-   Copyright (C) 2005-2015 Free Software Foundation, Inc.
+   Copyright (C) 2005-2016 Free Software Foundation, Inc.
 
    This file is part of libopcodes.
 
@@ -167,7 +167,7 @@ fmtconst (const_forms_t cf, TIword x, bfd_vma pc, disassemble_info *outf)
   else
     {
       if (constant_formats[cf].issigned && x < 0)
-       sprintf (buf, "-0x%x", abs (x));
+       sprintf (buf, "-0x%lx", (unsigned long)(- x));
       else
        sprintf (buf, "0x%lx", (unsigned long) x);
     }
This page took 0.02744 seconds and 4 git commands to generate.