[clang] [llvm] [RISCV][MC] Add support for Q extension (PR #139369)
Pengcheng Wang via llvm-commits
llvm-commits at lists.llvm.org
Mon May 12 00:27:03 PDT 2025
================
@@ -0,0 +1,153 @@
+//===-- 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, ?, FPR128>;
+
+defvar QExts = [QExt];
+defvar QExtsRV64 = [QExt];
+
+//===----------------------------------------------------------------------===//
+// Instructions
+//===----------------------------------------------------------------------===//
+
+let Predicates = [HasStdExtQ] in {
+ // def FLQ : FPLoad_r<0b100, "flq", FPR128, WriteFLD128>;
----------------
wangpc-pp wrote:
Don't comment out these defs, please remove them.
https://github.com/llvm/llvm-project/pull/139369
More information about the llvm-commits
mailing list