1 //===- LoongArchLVZInstrInfo.td - LoongArch LVZ instructions -*- tablegen -*-=//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file describes the LVZ extension instructions.
11 //===----------------------------------------------------------------------===//
13 //===----------------------------------------------------------------------===//
15 //===----------------------------------------------------------------------===//
17 let hasSideEffects = 1, mayLoad = 0, mayStore = 0, Predicates = [HasExtLVZ] in {
19 def GCSRRD : FmtCSR<0x05000000, (outs GPR:$rd), (ins uimm14:$csr_num),
22 let Constraints = "$rd = $dst" in {
23 def GCSRWR : FmtCSR<0x05000020, (outs GPR:$dst),
24 (ins GPR:$rd, uimm14:$csr_num), "$rd, $csr_num">;
25 def GCSRXCHG : FmtCSRXCHG<0x05000000, (outs GPR:$dst),
26 (ins GPR:$rd, GPR:$rj, uimm14:$csr_num),
27 "$rd, $rj, $csr_num">;
28 } // Constraints = "$rd = $dst"
30 def GTLBFLUSH : FmtI32<0x06482401>;
31 def HVCL : MISC_I15<0x002b8000>;
33 } // hasSideEffects = 1, mayLoad = 0, mayStore = 0, Predicates = [HasExtLVZ]