aboutsummaryrefslogtreecommitdiff
path: root/opcodes/sh-dis.c
diff options
context:
space:
mode:
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 e5fa9d2..ed472dc 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: