Adds a HLFIR operation for the PRODUCT intrinsic according to
the design set out in flang/doc/HighLevelFIR.md
Since the PRODUCT intrinsic is essentially identical to SUM
in terms of its arguments and result characteristics in the
Fortran Standard, the operation definition and subsequent
tests also take the same form.
This looks very similar to SumOp::verify. Could you try to share this in a:
An alternative would be to use an operation interface for reduction operation, but it seems a bit overkill at that point.