llvm-project/llvm/lib/Target/RISCV/AsmParser
Craig Topper 087b5f3277 [RISCV] Improve validation of opcode for .insn.
The lower 2 bits of the opcode must be 0x3. If the lower 2 bits are
0-2, it's a compressed instruction.

Merge 3 slightly different error messages into 1 to reduce code. The
messages differed slightly depending on whether we parsed a string
or an expression. The message gets a little more generic, but is no
more generic than what binutils prints.
2023-03-21 16:20:30 -07:00
..
CMakeLists.txt
RISCVAsmParser.cpp [RISCV] Improve validation of opcode for .insn. 2023-03-21 16:20:30 -07:00