[AVR] Support 16-bit LDS/STS on AVRTiny.
commit77249ea6bc6601d2637cf6c1d73c87c25faf1b71
authorBen Shi <powerman1st@163.com>
Fri, 23 Dec 2022 02:01:46 +0000 (23 10:01 +0800)
committerBen Shi <powerman1st@163.com>
Fri, 23 Dec 2022 03:03:45 +0000 (23 11:03 +0800)
tree8d1c7b44587f2eef707cc50bd1c9ff1e14e76e40
parente0a66116fcccd59d12485810f5311efafa134ea5
[AVR] Support 16-bit LDS/STS on AVRTiny.

LDS/STS are 32-bit instructions on AVR, which can access up to
64KB data space. While they are 16-bit instructions on AVRTiny,
which can only access 128B data space.

Reviewed By: aykevl

Differential Revision: https://reviews.llvm.org/D139621
llvm/lib/Target/AVR/AVRInstrFormats.td
llvm/lib/Target/AVR/AVRInstrInfo.td
llvm/lib/Target/AVR/Disassembler/AVRDisassembler.cpp
llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp
llvm/test/MC/AVR/inst-lds-tiny.s [new file with mode: 0644]
llvm/test/MC/AVR/inst-sts-tiny.s [new file with mode: 0644]