Remove "fix" call for "long long" from ARI
[deliverable/binutils-gdb.git] / opcodes / visium-dis.c
index e72172f908d481dd9cae85904686df5b5ba44a13..41943ade7264b73b2c3eae33baf93ae231c3042b 100644 (file)
@@ -1,6 +1,6 @@
 /* Single instruction disassembler for the Visium.
 
-   Copyright (C) 2002-2018 Free Software Foundation, Inc.
+   Copyright (C) 2002-2019 Free Software Foundation, Inc.
 
    This file is part of the GNU opcodes library.
 
@@ -94,7 +94,7 @@ disassem_class0 (disassemble_info *info, unsigned int ins)
       /* BRR instruction.  */
       {
        unsigned cbf = (ins >> 27) & 0x000f;
-       int displacement = ((int) (ins << 16)) >> 16;
+       int displacement = ((ins & 0xffff) ^ 0x8000) - 0x8000;
 
        if (ins == 0)
          (*info->fprintf_func) (info->stream, "nop");
This page took 0.026513 seconds and 4 git commands to generate.