From: Alexandre Oliva Date: Mon, 11 Feb 2002 13:24:51 +0000 (+0000) Subject: * sparc-dis.c (print_insn_sparc): Make sure 0xFFFFFFFF is not X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=56930d376b3c19f44f084e9db6eecd0a5390e445;p=deliverable%2Fbinutils-gdb.git * sparc-dis.c (print_insn_sparc): Make sure 0xFFFFFFFF is not sign-extended. --- diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 21fb7ee645..a6a07e390b 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2002-02-11 Alexandre Oliva + + * sparc-dis.c (print_insn_sparc): Make sure 0xFFFFFFFF is not + sign-extended. + 2002-02-11 Alan Modra * Makefile.am: "make dep-am". diff --git a/opcodes/sparc-dis.c b/opcodes/sparc-dis.c index 359050723d..4c59398d54 100644 --- a/opcodes/sparc-dis.c +++ b/opcodes/sparc-dis.c @@ -419,7 +419,7 @@ print_insn_sparc (memaddr, info) case 'h': (*info->fprintf_func) (stream, "%%hi(%#x)", - (0xFFFFFFFF + ((unsigned) 0xFFFFFFFF & ((int) X_IMM22 (insn) << 10))); break; @@ -716,7 +716,8 @@ print_insn_sparc (memaddr, info) { (*info->fprintf_func) (stream, "\t! "); info->target = - (0xFFFFFFFF & (int) X_IMM22 (prev_insn) << 10); + ((unsigned) 0xFFFFFFFF + & ((int) X_IMM22 (prev_insn) << 10)); if (imm_added_to_rs1) info->target += X_SIMM (insn, 13); else