[RISCV] MC layer support for the instructions added in the privileged spec
authorAlex Bradbury <asb@lowrisc.org>
Tue, 12 Dec 2017 15:17:45 +0000 (15:17 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Tue, 12 Dec 2017 15:17:45 +0000 (15:17 +0000)
commit8bba6bfeef6853194f47f85c7391bc3b52e867f0
tree3b077386bf994e0466534125281eee5625fe7af8
parent1daef8a6678a066758e340d10e84f337979a0c6b
[RISCV] MC layer support for the instructions added in the privileged spec

Adds support for the instructions added in the RISC-V privileged ISA
(https://content.riscv.org/wp-content/uploads/2017/05/riscv-privileged-v1.10.pdf):
uret, sret, mret, wfi, and sfence.vma.

Note from the committer: I made very minor formatting changes prior to commit,
which didn't seem worth creating another review round-trip for.

Differential Revision: https://reviews.llvm.org/D40383

Patch by David Craven.

llvm-svn: 320484
llvm/lib/Target/RISCV/RISCVInstrInfo.td
llvm/test/MC/RISCV/priv-invalid.s [new file with mode: 0644]
llvm/test/MC/RISCV/priv-valid.s [new file with mode: 0644]