From: Jeff Law Date: Sat, 28 Aug 1999 08:47:50 +0000 (+0000) Subject: * hppa-dis.c (signed_unsigned_names,mix_half_names, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1eee34f59f8734c3f7aaeabcdfb8ba7cdb00a0b1;p=binutils-gdb.git * hppa-dis.c (signed_unsigned_names,mix_half_names, saturation_names): New. (print_insn_hppa): Add completer codes 'a', 'ch', 'cH', 'cS', and 'c*'. --- diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 2dca02175c0..a6db1cea912 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,5 +1,9 @@ Sat Aug 28 00:27:24 1999 Jerry Quinn + * hppa-dis.c (signed_unsigned_names,mix_half_names, + saturation_names): New. + (print_insn_hppa): Add completer codes 'a', 'ch', 'cH', 'cS', and 'c*'. + * hppa-dis.c (print_insn_hppa): Place completers behind prefix 'c'. * hppa-dis.c (print_insn_hppa): Add cases for '.', '~'. '$'. and '!' diff --git a/opcodes/hppa-dis.c b/opcodes/hppa-dis.c index 52bc8ce2b38..4a7fd06efb7 100644 --- a/opcodes/hppa-dis.c +++ b/opcodes/hppa-dis.c @@ -125,6 +125,10 @@ static const char float_comp_names[][8] = ",!?<=", ",>", ",?>", ",!<=", ",!?<", ",>=", ",?>=", ",!<", ",!?=", ",<>", ",!=", ",!=t", ",!?", ",<=>", ",true?", ",true" }; +static const char *const signed_unsigned_names[][3] = {",u", ",s"}; +static const char *const mix_half_names[][3] = {",l", ",r"}; +static const char *const saturation_names[][3] = {",us", ",ss", 0, ""}; + /* For a bunch of different instructions form an index into a completer name table. */ @@ -346,6 +350,7 @@ print_insn_hppa (memaddr, info) else fput_fp_reg (GET_FIELD (insn, 11, 15), info); break; + case 'a': case 'b': fput_reg (GET_FIELD (insn, 6, 10), info); break; @@ -441,6 +446,33 @@ print_insn_hppa (memaddr, info) else (*info->fprintf_func) (info->stream, " "); break; + case 'S': + /* EXTRD/W has a following condition. */ + if (*(s + 1) == '?') + (*info->fprintf_func) + (info->stream, "%s", signed_unsigned_names[GET_FIELD + (insn, 21, 21)]); + else + (*info->fprintf_func) + (info->stream, "%s ", signed_unsigned_names[GET_FIELD + (insn, 21, 21)]); + break; + case 'h': + (*info->fprintf_func) + (info->stream, "%s", mix_half_names[GET_FIELD + (insn, 17, 17)]); + break; + case 'H': + (*info->fprintf_func) + (info->stream, "%s", saturation_names[GET_FIELD + (insn, 24, 25)]); + break; + case '*': + (*info->fprintf_func) + (info->stream, ",%d%d%d%d ", + GET_FIELD (insn, 17, 18), GET_FIELD (insn, 20, 21), + GET_FIELD (insn, 22, 23), GET_FIELD (insn, 24, 25)); + break; } break;