[clang] [llvm] [RISCV][MC] Add support for Q extension (PR #139369)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon May 12 12:33:15 PDT 2025
================
@@ -0,0 +1,151 @@
+//===-- RISCVInstrInfoQ.td - RISC-V 'Q' instructions -------*- tablegen -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// This file describes the RISC-V instructions from the standard 'Q',
+// Quad-Precision Floating-Point instruction set extension.
+//
+//===----------------------------------------------------------------------===//
+
+//===----------------------------------------------------------------------===//
+// Operand and SDNode transformation definitions.
+//===----------------------------------------------------------------------===//
+
+def QExt : ExtInfo<"", "", [HasStdExtQ], f128, FPR128, FPR32, FPR64, ?>;
+
+defvar QExts = [QExt];
+defvar QExtsRV64 = [QExt];
+
+//===----------------------------------------------------------------------===//
+// Instructions
+//===----------------------------------------------------------------------===//
+
+let Predicates = [HasStdExtQ] in {
+ let hasSideEffects = 0, mayLoad = 1, mayStore = 0 in
+ def FLQ : RVInstI<0b100, OPC_LOAD_FP, (outs FPR128:$rd),
+ (ins GPRMem:$rs1, simm12:$imm12),
----------------
topperc wrote:
This is indented incorrectly.
https://github.com/llvm/llvm-project/pull/139369
More information about the llvm-commits
mailing list