[LoongArch] Add privilege instructions definition
authorWeining Lu <luweining@loongson.cn>
Sun, 24 Apr 2022 06:59:19 +0000 (14:59 +0800)
committerWeining Lu <luweining@loongson.cn>
Sat, 14 May 2022 09:46:02 +0000 (17:46 +0800)
commit11ec7307a38adcd0ec7a0a9d5bcab11cfce48e2f
tree751a2f15b126f12266af04b94934708fbd210572
parent7ff7001ba9495ba8a74a4bfeb594f7f61e9656c7
[LoongArch] Add privilege instructions definition

These instructions are added by following the `LoongArch Reference
Manual Volume 1: Basic Architecture Version 1.00`.

Differential Revision: https://reviews.llvm.org/D124826
llvm/lib/Target/LoongArch/AsmParser/LoongArchAsmParser.cpp
llvm/lib/Target/LoongArch/LoongArchInstrFormats.td
llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
llvm/test/MC/LoongArch/Basic/Privilege/invalid.s [new file with mode: 0644]
llvm/test/MC/LoongArch/Basic/Privilege/valid.s [new file with mode: 0644]