/* Disassembler for the PA-RISC. Somewhat derived from sparc-pinsn.c.
- Copyright (C) 1989-2018 Free Software Foundation, Inc.
+ Copyright (C) 1989-2020 Free Software Foundation, Inc.
Contributed by the Center for Software Science at the
University of Utah (pa-gdb-bugs@cs.utah.edu).
fput_const (unsigned num, disassemble_info *info)
{
if ((int) num < 0)
- (*info->fprintf_func) (info->stream, "-%x", - (int) num);
+ (*info->fprintf_func) (info->stream, "-%x", -num);
else
(*info->fprintf_func) (info->stream, "%x", num);
}
static int
extract_16 (unsigned word)
{
- int m15, m0, m1;
+ unsigned m15, m0, m1;
m0 = GET_BIT (word, 16);
m1 = GET_BIT (word, 17);
static int
extract_21 (unsigned word)
{
- int val;
+ unsigned val;
word &= MASK_21;
word <<= 11;
fput_fp_reg (GET_FIELD (insn, 6, 10), info);
break;
- /* 'fA' will not generate a space before the regsiter
+ /* 'fA' will not generate a space before the register
name. Normally that is fine. Except that it
causes problems with xmpyu which has no FP format
completer. */
case '#':
{
- int sign = GET_FIELD (insn, 31, 31);
- int imm10 = GET_FIELD (insn, 18, 27);
- int disp;
+ unsigned sign = GET_FIELD (insn, 31, 31);
+ unsigned imm10 = GET_FIELD (insn, 18, 27);
+ unsigned disp;
if (sign)
disp = (-1U << 10) | imm10;
case 'K':
case 'd':
{
- int sign = GET_FIELD (insn, 31, 31);
- int imm11 = GET_FIELD (insn, 18, 28);
- int disp;
+ unsigned sign = GET_FIELD (insn, 31, 31);
+ unsigned imm11 = GET_FIELD (insn, 18, 28);
+ unsigned disp;
if (sign)
disp = (-1U << 11) | imm11;