mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-30 12:44:10 +08:00
* hppa-dis.c (print_insn_hppa): Add args q, %, !, and |.
This commit is contained in:
parent
90927b9c0e
commit
af10de8240
@ -1,5 +1,7 @@
|
||||
Sat Aug 28 00:27:24 1999 Jerry Quinn <jquinn@nortelnetworks.com>
|
||||
|
||||
* hppa-dis.c (print_insn_hppa): Add args q, %, !, and |.
|
||||
|
||||
* hppa-dis.c (MASK_10, read_write_names, add_compl_names,
|
||||
extract_10U_store): New.
|
||||
(print_insn_hppa): Add new completers.
|
||||
|
@ -372,6 +372,9 @@ print_insn_hppa (memaddr, info)
|
||||
case 'E':
|
||||
fput_fp_reg (GET_FIELD (insn, 6, 10), info);
|
||||
break;
|
||||
case '!':
|
||||
fput_creg (11, info);
|
||||
break;
|
||||
case 't':
|
||||
fput_reg (GET_FIELD (insn, 27, 31), info);
|
||||
break;
|
||||
@ -476,6 +479,10 @@ print_insn_hppa (memaddr, info)
|
||||
if (GET_FIELD (insn, 25, 25))
|
||||
(*info->fprintf_func) (info->stream, ",i");
|
||||
break;
|
||||
case 'z':
|
||||
if (!GET_FIELD (insn, 21, 21))
|
||||
(*info->fprintf_func) (info->stream, ",z");
|
||||
break;
|
||||
case 'a':
|
||||
(*info->fprintf_func)
|
||||
(info->stream, "%s", add_compl_names[GET_FIELD
|
||||
@ -757,10 +764,34 @@ print_insn_hppa (memaddr, info)
|
||||
(*info->fprintf_func) (info->stream, "%d",
|
||||
GET_FIELD (insn, 22, 26));
|
||||
break;
|
||||
case 'q':
|
||||
{
|
||||
int num;
|
||||
num = GET_FIELD (insn, 20, 20) << 5;
|
||||
num |= GET_FIELD (insn, 22, 26);
|
||||
(*info->fprintf_func) (info->stream, "%d", num);
|
||||
break;
|
||||
}
|
||||
case 'T':
|
||||
(*info->fprintf_func) (info->stream, "%d",
|
||||
32 - GET_FIELD (insn, 27, 31));
|
||||
break;
|
||||
case '%':
|
||||
{
|
||||
int num;
|
||||
num = (GET_FIELD (insn, 23, 23) + 1) * 32;
|
||||
num -= GET_FIELD (insn, 27, 31);
|
||||
(*info->fprintf_func) (info->stream, "%d", num);
|
||||
break;
|
||||
}
|
||||
case '|':
|
||||
{
|
||||
int num;
|
||||
num = (GET_FIELD (insn, 19, 19) + 1) * 32;
|
||||
num -= GET_FIELD (insn, 27, 31);
|
||||
(*info->fprintf_func) (info->stream, "%d", num);
|
||||
break;
|
||||
}
|
||||
case '$':
|
||||
fput_const (GET_FIELD (insn, 20, 28), info);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user