Fix the encoding of the MSP430's RRUX instruction.
authorNick Clifton <nickc@redhat.com>
Thu, 4 Feb 2016 09:55:10 +0000 (09:55 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 4 Feb 2016 09:55:10 +0000 (09:55 +0000)
commitc1d9289fef41b82aa22f63f74aa8e730ec898d3c
treee477a2b77b58e8d51a359f02cba511bc00f85873
parent1b18aa1e79a0b343087d08075f117e821c33b930
Fix the encoding of the MSP430's RRUX instruction.

PR target/19561
opcdoe * msp430-dis.c (print_insn_msp430): Add a special case for
decoding an RRC instruction with the ZC bit set in the extension
word.

include * opcode/msp430.h (IGNORE_CARRY_BIT): New define.
(RRUX): Synthesise using case 2 rather than 7.

gas * config/tc-msp430.c (msp430_operands): Remove case 7.  Use case 2
to handle encoding of RRUX instruction.
* testsuite/gas/msp430/msp430x.s: Add more tests of the extended
shift instructions.
* testsuite/gas/msp430/msp430x.d: Update expected disassembly.
gas/ChangeLog
gas/config/tc-msp430.c
gas/testsuite/gas/msp430/msp430x.d
gas/testsuite/gas/msp430/msp430x.s
include/ChangeLog
include/opcode/msp430.h
opcodes/ChangeLog
opcodes/msp430-dis.c