summaryrefslogtreecommitdiff
path: root/opcodes/arm-dis.c
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2001-10-08 18:50:37 +0000
committerAldy Hernandez <aldyh@redhat.com>2001-10-08 18:50:37 +0000
commitc652ed65a1eb341ad8ed1cae3208f85428272e16 (patch)
treee9c435dc6ba8131468b333ee18221c9e48b14c9f /opcodes/arm-dis.c
parent8fb84d222792ed05355db3f10b83a3733216a40f (diff)
downloadgdb-c652ed65a1eb341ad8ed1cae3208f85428272e16.tar.gz
* opcodess/arm-opc.h (arm_opcodes): Add cirrus insns.
* opcodes/arm-dis.c (print_insn_arm): Add 'I' case.
Diffstat (limited to 'opcodes/arm-dis.c')
-rw-r--r--opcodes/arm-dis.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c
index 61038ae7d52..104b933bbc2 100644
--- a/opcodes/arm-dis.c
+++ b/opcodes/arm-dis.c
@@ -445,6 +445,25 @@ print_insn_arm (pc, info, given)
}
break;
+ case 'I':
+ /* Print a Cirrus/DSP shift immediate. */
+ /* Immediates are 7bit signed ints with bits 0..3 in
+ bits 0..3 of opcode and bits 4..6 in bits 5..7
+ of opcode. */
+ {
+ int imm;
+
+ imm = (given & 0xf) | ((given & 0xe0) >> 1);
+
+ /* Is ``imm'' a negative number? */
+ if (imm & 0x40)
+ imm |= (-1 << 7);
+
+ func (stream, "%d", imm);
+ }
+
+ break;
+
case 'C':
func (stream, "_");
if (given & 0x80000)