[clang] [llvm] [RISCV][MC] Add support for Q extension (PR #139369)

Pengcheng Wang via cfe-commits cfe-commits at lists.llvm.org
Mon May 12 23:14:42 PDT 2025


================
@@ -291,6 +291,13 @@ def HasStdExtD : Predicate<"Subtarget->hasStdExtD()">,
                  AssemblerPredicate<(all_of FeatureStdExtD),
                                     "'D' (Double-Precision Floating-Point)">;
 
+def FeatureStdExtQ
+    : RISCVExtension<2, 2, "Quad-Precision Floating-Point", [FeatureStdExtD]>,
+      RISCVExtensionBitmask<0, 16>;
----------------
wangpc-pp wrote:

Where does the `16` come from? I don't see it in https://github.com/riscv-non-isa/riscv-c-api-doc/blob/main/src/c-api.adoc#extension-bitmask-definitions. I think we should remove the `RISCVExtensionBitmask` for now.

https://github.com/llvm/llvm-project/pull/139369


More information about the cfe-commits mailing list