summaryrefslogtreecommitdiff
path: root/opcodes/sh-dis.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-10-09 12:25:22 +0000
committerNick Clifton <nickc@redhat.com>2001-10-09 12:25:22 +0000
commitddb682659b12f61f84142872ed6b32fef3918cff (patch)
tree86af5750044bf096516e46f9d01533c7bfbd8f7e /opcodes/sh-dis.c
parent0e2ee3ca05685dd15a9aa629d3a7dd1a686e6351 (diff)
downloadbinutils-gdb-ddb682659b12f61f84142872ed6b32fef3918cff.tar.gz
fix encoding & decoding of DSP single data transfer instructions
Diffstat (limited to 'opcodes/sh-dis.c')
-rw-r--r--opcodes/sh-dis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/sh-dis.c b/opcodes/sh-dis.c
index e5fa9d2330d..ed472dc3045 100644
--- a/opcodes/sh-dis.c
+++ b/opcodes/sh-dis.c
@@ -465,7 +465,7 @@ print_insn_shx (memaddr, info)
if ((rn & 0xc) != 4)
goto fail;
rn = rn & 0x3;
- rn |= (rn & 2) << 1;
+ rn |= (!(rn & 2)) << 2;
break;
case PPI:
case REPEAT: