2009-09-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
authorAndreas Krebbel <Andreas.Krebbel@de.ibm.com>
Thu, 10 Sep 2009 09:04:06 +0000 (09:04 +0000)
committerAndreas Krebbel <Andreas.Krebbel@de.ibm.com>
Thu, 10 Sep 2009 09:04:06 +0000 (09:04 +0000)
* s390-dis.c (print_insn_s390): Avoid 'long long'.

opcodes/ChangeLog
opcodes/s390-dis.c

index d30b9b93be3f0d6ecdcc5f48a179b076b6b939e3..14079aa87d52516933a86feba16db96f053abb1f 100644 (file)
@@ -1,3 +1,7 @@
+2009-09-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
+       
+       * s390-dis.c (print_insn_s390): Avoid 'long long'.
+
 2009-09-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
        
        * s390-dis.c (s390_extract_operand): Remove the shift for pcrel operands.
index fe208ba9ff25b524cce113092bd1c0bfc861aaab..986e4b50cd60eadc81075c8ef0dbcb9d1d610626 100644 (file)
@@ -222,8 +222,8 @@ print_insn_s390 (bfd_vma memaddr, struct disassemble_info *info)
              else if (operand->flags & S390_OPERAND_CR)
                (*info->fprintf_func) (info->stream, "%%c%i", value);
              else if (operand->flags & S390_OPERAND_PCREL)
-               (*info->print_address_func) (memaddr +
-                                            (((long long)(int)value) << 1), info);
+               (*info->print_address_func) (memaddr + (int)value + (int)value,
+                                            info);
              else if (operand->flags & S390_OPERAND_SIGNED)
                (*info->fprintf_func) (info->stream, "%i", (int) value);
              else
This page took 0.042377 seconds and 4 git commands to generate.