* sparc-dis.c (print_insn_sparc): Make sure 0xFFFFFFFF is not

sign-extended.
This commit is contained in:
Alexandre Oliva 2002-02-11 13:24:51 +00:00
parent 6c1b24e42f
commit 56930d376b
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-02-11 Alexandre Oliva <aoliva@redhat.com>
* sparc-dis.c (print_insn_sparc): Make sure 0xFFFFFFFF is not
sign-extended.
2002-02-11 Alan Modra <amodra@bigpond.net.au>
* Makefile.am: "make dep-am".

View File

@ -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