|
| 1 | +//===---------------- RISCVInstrInfoXQci.td ----------------*- 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 vendor extensions defined by QUALCOMM. |
| 10 | +// |
| 11 | +//===----------------------------------------------------------------------===// |
| 12 | + |
| 13 | +//===----------------------------------------------------------------------===// |
| 14 | +// Operand and SDNode transformation definitions. |
| 15 | +//===----------------------------------------------------------------------===// |
| 16 | + |
| 17 | +//===----------------------------------------------------------------------===// |
| 18 | +// Instruction Formats |
| 19 | +//===----------------------------------------------------------------------===// |
| 20 | + |
| 21 | +//===----------------------------------------------------------------------===// |
| 22 | +// Instruction Class Templates |
| 23 | +//===----------------------------------------------------------------------===// |
| 24 | + |
| 25 | +//===----------------------------------------------------------------------===// |
| 26 | +// Instructions |
| 27 | +//===----------------------------------------------------------------------===// |
| 28 | + |
| 29 | +let Predicates = [HasVendorXqcicsr, IsRV32], DecoderNamespace = "Xqcicsr" in { |
| 30 | +let hasSideEffects = 0, mayLoad = 0, mayStore = 0 in { |
| 31 | + def QC_CSRRWR : RVInstR<0b1000110, 0b000, OPC_SYSTEM, (outs GPR:$rd), |
| 32 | + (ins GPR:$rs1, GPRNoX0:$rs2), "qc.csrrwr", |
| 33 | + "$rd, $rs1, $rs2">; |
| 34 | + |
| 35 | + def QC_CSRRWRI : RVInstR<0b1000111, 0b000, OPC_SYSTEM, (outs GPR:$rd), |
| 36 | + (ins uimm5:$rs1, GPRNoX0:$rs2), "qc.csrrwri", |
| 37 | + "$rd, $rs1, $rs2">; |
| 38 | +} // hasSideEffects = 0, mayLoad = 0, mayStore = 0 |
| 39 | +} // Predicates = [HasVendorXqcicsr, IsRV32], DecoderNamespace = "Xqcicsr" |
0 commit comments