* dwarf2read.c (struct die_info): Doc fix.
[deliverable/binutils-gdb.git] / opcodes / s390-dis.c
index 33121c78b70374fae7f5cc1eb5cbe05a1693508f..42f5151d3f0090bf06de9daeed4f1afb2fd75fe7 100644 (file)
@@ -89,6 +89,10 @@ s390_extract_operand (insn, operand)
   val >>= -bits;
   val &= ((1U << (operand->bits - 1)) << 1) - 1;
 
+  /* Check for special long displacement case.  */
+  if (operand->bits == 20 && operand->shift == 20)
+    val = (val & 0xff) << 12 | (val & 0xfff00) >> 8;
+
   /* Sign extend value if the operand is signed or pc relative.  */
   if ((operand->flags & (S390_OPERAND_SIGNED | S390_OPERAND_PCREL))
       && (val & (1U << (operand->bits - 1))))
This page took 0.023409 seconds and 4 git commands to generate.