[libc-commits] [libc] [libc] Add mpfr tests for fmul. (PR #97376)
via libc-commits
libc-commits at lists.llvm.org
Mon Jul 1 20:27:26 PDT 2024
================
@@ -304,13 +315,15 @@ constexpr bool is_valid_operation() {
(op == Operation::Sqrt && cpp::is_floating_point_v<InputType> &&
cpp::is_floating_point_v<OutputType> &&
sizeof(OutputType) <= sizeof(InputType)) ||
- (op == Operation::Div && internal::IsBinaryInput<InputType>::VALUE &&
+ (op == Operation::Div && internal::IsBinaryInput<InputType>::VALUE &&
cpp::is_floating_point_v<
typename internal::MakeScalarInput<InputType>::type> &&
cpp::is_floating_point_v<OutputType>) ||
(op == Operation::Fma && internal::IsTernaryInput<InputType>::VALUE &&
cpp::is_floating_point_v<
typename internal::MakeScalarInput<InputType>::type> &&
+ cpp::is_floating_point_v<OutputType>) ||
+ (op == Operation::Fmul && internal::IsBinaryInput<InputType>::VALUE &&
----------------
lntue wrote:
Remove it here, add `op == Operation::Fmul` next to `op == Operation::Div` instead.
https://github.com/llvm/llvm-project/pull/97376
More information about the libc-commits
mailing list