[AVR] Fix incorrect decoding of RJMP and RCALL
commit6dc85bd3fde7df2999fda07e9e9f2e83d52c6125
authorBen Shi <powerman1st@163.com>
Sat, 7 Jan 2023 06:33:24 +0000 (7 14:33 +0800)
committerBen Shi <powerman1st@163.com>
Sat, 7 Jan 2023 15:26:40 +0000 (7 23:26 +0800)
tree8201a3a16b2cd9581f9e116383221d78f1b75f73
parent99203241df4d73e569e9219105fec76919f07c19
[AVR] Fix incorrect decoding of RJMP and RCALL

This patch fixes the inaccurate decoding of the offset operand of
the RCALL & RJMP instructions.

Reviewed By: aykevl, MaskRay

Differential Revision: https://reviews.llvm.org/D140815
llvm/lib/Target/AVR/AVRInstrFormats.td
llvm/lib/Target/AVR/Disassembler/AVRDisassembler.cpp
llvm/test/MC/AVR/inst-rcall.s
llvm/test/MC/AVR/inst-rjmp.s