[libc-commits] [libc] [libc][math] Add MPFR tests for fmul (PR #96413)

via libc-commits libc-commits at lists.llvm.org
Sat Jun 22 18:42:41 PDT 2024


================
@@ -293,7 +296,10 @@ constexpr bool is_valid_operation() {
       (op == Operation::Fma && internal::IsTernaryInput<InputType>::VALUE &&
        cpp::is_floating_point_v<
            typename internal::MakeScalarInput<InputType>::type> &&
-       cpp::is_floating_point_v<OutputType>);
+       cpp::is_floating_point_v<OutputType>) ||
+      (op == Operation::Fmul &&
+       !internal::AreMatchingBinaryInputAndBinaryOutput<InputType,
----------------
lntue wrote:

it should be similar conditions to the `Operation::Fma` above, with `IsBinaryInput` instead of `IsTernaryInput`.

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


More information about the libc-commits mailing list