1//===- LoongArchLVZInstrInfo.td - LoongArch LVZ instructions -*- tablegen -*-=// 2// 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 6// 7//===----------------------------------------------------------------------===// 8// 9// This file describes the LVZ extension instructions. 10// 11//===----------------------------------------------------------------------===// 12 13//===----------------------------------------------------------------------===// 14// Instructions 15//===----------------------------------------------------------------------===// 16 17let hasSideEffects = 1, mayLoad = 0, mayStore = 0, Predicates = [HasExtLVZ] in { 18 19def GCSRRD : FmtCSR<0x05000000, (outs GPR:$rd), (ins uimm14:$csr_num), 20 "$rd, $csr_num">; 21 22let Constraints = "$rd = $dst" in { 23def GCSRWR : FmtCSR<0x05000020, (outs GPR:$dst), 24 (ins GPR:$rd, uimm14:$csr_num), "$rd, $csr_num">; 25def GCSRXCHG : FmtCSRXCHG<0x05000000, (outs GPR:$dst), 26 (ins GPR:$rd, GPR:$rj, uimm14:$csr_num), 27 "$rd, $rj, $csr_num">; 28} // Constraints = "$rd = $dst" 29 30def GTLBFLUSH : FmtI32<0x06482401>; 31def HVCL : MISC_I15<0x002b8000>; 32 33} // hasSideEffects = 1, mayLoad = 0, mayStore = 0, Predicates = [HasExtLVZ] 34