[RISCV] Add instruction definition for dret
authorPengxuan Zheng <pzheng@quicinc.com>
Fri, 24 Apr 2020 20:15:51 +0000 (13:15 -0700)
committerPengxuan Zheng <pzheng@quicinc.com>
Fri, 24 Apr 2020 20:27:43 +0000 (13:27 -0700)
commit79702dd349f31c0c67bf35f36435fdc843fcd052
treef1b3de2fc7a4ba234003c5fafc00471fa9afbc7f
parent97ecd91e2025f23c3ed38594454aeb7027ad82b7
[RISCV] Add instruction definition for dret

Summary:
The instruction dret is used to return from debug mode and is defined in the
RISC-V debug mode spec.

https://github.com/riscv/riscv-opcodes/blob/master/opcodes-system

Reviewers: apazos, asb, lenary, luismarques

Reviewed By: apazos

Subscribers: jfb, hiraditya, rbar, johnrusso, simoncook, sabuasal, niosHD, kito-cheng, shiva0217, jrtc27, MaskRay, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, PkmX, jocewei, psnobl, benna, Jim, s.egerton, sameer.abuasal, evandro, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D78583
llvm/lib/Target/RISCV/RISCVInstrInfo.td
llvm/test/MC/RISCV/debug-valid.s [new file with mode: 0644]