[AVR] Disassemble double register instructions
authorAyke van Laethem <aykevanlaethem@gmail.com>
Thu, 18 Jun 2020 13:26:23 +0000 (15:26 +0200)
committerAyke van Laethem <aykevanlaethem@gmail.com>
Tue, 23 Jun 2020 00:18:04 +0000 (02:18 +0200)
commiteac4a601548566fb311b0b596dbaee893507cfb8
tree01c417c37150e3c3cf8a5bbb2387e8d7e33fbd2b
parent9f09c29f0158f59dad07bce11e67470c0399c259
[AVR] Disassemble double register instructions

Add disassembly support for the movw, adiw, and sbiw instructions.

I had previously committed test cases for the adiw and sbiw
instructions, but had accidentally made them not runnable so they were
skipped all this time. Oops. This patch fixes that by adding support for
disassembling those instructions.

Differential Revision: https://reviews.llvm.org/D82093
llvm/lib/Target/AVR/AVRInstrFormats.td
llvm/lib/Target/AVR/Disassembler/AVRDisassembler.cpp
llvm/test/MC/AVR/inst-adiw.s
llvm/test/MC/AVR/inst-movw.s
llvm/test/MC/AVR/inst-sbiw.s