[RISCV] Relax opcode restriction for .insn.
authorCraig Topper <craig.topper@sifive.com>
Mon, 27 Mar 2023 17:24:52 +0000 (10:24 -0700)
committerCraig Topper <craig.topper@sifive.com>
Mon, 27 Mar 2023 17:24:55 +0000 (10:24 -0700)
commit5c5fe3afff12b41d34477977c07c71337fa4ba9d
tree57c87c70e95a46bef69a81d506dbab17d3e10a44
parent4fde20b8a62ed3d850e4e770ae640039ca1a9ed8
[RISCV] Relax opcode restriction for .insn.

I recently added a check to make sure the lower 2 bits of the opcode
were 0x3. A post commit comment pointed out this would be allowed
for a custom extension when C is not supported.

Note, binutils does have this restriction.
llvm/test/MC/RISCV/insn-invalid.s