[PowerPC] Remove asserts from the disassembler.
authorStefan Pintilie <stefanp@ca.ibm.com>
Wed, 24 May 2023 16:33:54 +0000 (12:33 -0400)
committerStefan Pintilie <stefanp@ca.ibm.com>
Wed, 24 May 2023 17:22:23 +0000 (13:22 -0400)
commit11fbd0c6abc9c47714247b58d9d8b0ef12bf1a4e
treee8a7550f7e0554e62d6046e15e83a31d4a3f382e
parent747704e34f3a9d1b30e79f3bc12d32527b8c6cdd
[PowerPC] Remove asserts from the disassembler.

My previous patch had added a couple of asserts to the disassembler.
The problem with this is that the disassembler is not just used for the
text section it is also used to disassemble the data section of an
object where the bytes do not necessarily represent instructions. If the
data in the data section happens to look like an illegal instruction
then llvm-objdump will assert on data because it is finding an illegal
instruction that is not actually an instruction at all.

Reviewed By: nemanjai, #powerpc

Differential Revision: https://reviews.llvm.org/D149711
llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp
llvm/test/MC/Disassembler/PowerPC/ppc64-encoding-dfp-invalid.txt [new file with mode: 0644]