* hppa-dis.c (extract_22): New function.

This commit is contained in:
Jeff Law
1999-09-19 20:14:30 +00:00
parent eb32eb44aa
commit b3fe7ee280
2 changed files with 13 additions and 1 deletions

View File

@@ -315,6 +315,17 @@ extract_17 (word)
(word & 0x1) << 16, 17) << 2;
}
static int
extract_22 (word)
unsigned word;
{
return sign_extend (GET_FIELD (word, 19, 28) |
GET_FIELD (word, 29, 29) << 10 |
GET_FIELD (word, 11, 15) << 11 |
GET_FIELD (word, 6, 10) << 16 |
(word & 0x1) << 21, 22) << 2;
}
/* Print one instruction. */
int
print_insn_hppa (memaddr, info)
@@ -926,7 +937,6 @@ print_insn_hppa (memaddr, info)
fput_const (extract_14 (insn), info);
break;
case '#':
{
int sign = GET_FIELD (insn, 31, 31);