[AVR] Reject invalid LDD instruction with explicit error
authorBen Shi <powerman1st@163.com>
Sun, 9 Apr 2023 09:37:32 +0000 (17:37 +0800)
committerBen Shi <powerman1st@163.com>
Mon, 10 Apr 2023 02:34:45 +0000 (10:34 +0800)
commit6e57f68e41c92936b9ef3a4e6fb286e8805a9fbc
tree277a14d3abab93a0224b146a5631ad4bc5b60926
parenta3d5ec51bacfadb560cc78a7e866b118027a414e
[AVR] Reject invalid LDD instruction with explicit error

We should reject "ldd Rn, X" with explicit error message
rather than "llvm_unreachable" in llvm's release build.

Fixes https://github.com/llvm/llvm-project/issues/62012

Reviewed By: Miss_Grape

Differential Revision: https://reviews.llvm.org/D147877
llvm/lib/Target/AVR/MCTargetDesc/AVRMCCodeEmitter.cpp
llvm/test/CodeGen/AVR/inline-asm/inline-asm-invalid.ll