]> granicus.if.org Git - llvm/commit
[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)
commit15d22cecdfe4a36a63f63e55118fbb4787906c06
tree94d402dcf417ccbc5f005bdfb5c3b99c6c6e70fb
parent50ead9021f9c9ad106e5e70f625fe33c4bf1878a
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320484 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/RISCV/RISCVInstrInfo.td
test/MC/RISCV/priv-invalid.s [new file with mode: 0644]
test/MC/RISCV/priv-valid.s [new file with mode: 0644]