[clang] [llvm] [clang][NVPTX] Add support for mixed-precision FP arithmetic (PR #168359)

Artem Belevich via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 20 13:46:11 PST 2025


================
@@ -1386,6 +1386,14 @@ let TargetPrefix = "nvvm" in {
       PureIntrinsic<[llvm_double_ty],
         [llvm_double_ty, llvm_double_ty, llvm_double_ty]>;
   }
+  
+  foreach rnd = ["_rn", "_rz", "_rm", "_rp"] in {
+    foreach sat = ["", "_sat"] in {
+      def int_nvvm_fma_mixed # rnd # sat # _f32 :
+        PureIntrinsic<[llvm_float_ty], 
+          [llvm_anyfloat_ty, LLVMMatchType<0>, llvm_float_ty]>;
+    }
+  }
----------------
Artem-B wrote:

And now that we are no longer adding mixed mode builtins, we should also update the patch title and description.

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


More information about the llvm-commits mailing list