[clang] [llvm] [clang][NVPTX] Add support for mixed-precision FP arithmetic (PR #168359)
Alex MacLean via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 26 19:23:11 PST 2025
================
@@ -1376,16 +1376,18 @@ let TargetPrefix = "nvvm" in {
} // ftz
} // variant
- foreach rnd = ["rn", "rz", "rm", "rp"] in {
- foreach ftz = ["", "_ftz"] in
- def int_nvvm_fma_ # rnd # ftz # _f : NVVMBuiltin,
- PureIntrinsic<[llvm_float_ty],
- [llvm_float_ty, llvm_float_ty, llvm_float_ty]>;
-
- def int_nvvm_fma_ # rnd # _d : NVVMBuiltin,
+ foreach rnd = ["_rn", "_rz", "_rm", "_rp"] in {
+ foreach ftz = ["", "_ftz"] in {
+ foreach sat = ["", "_sat"] in {
----------------
AlexMaclean wrote:
It looks like .sat is supported for f16 as well. Do we want to make this an overloaded intrinsic so that both types are supported?
https://github.com/llvm/llvm-project/pull/168359
More information about the llvm-commits
mailing list