mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-26 13:26:22 +00:00
[flang][runtime] Improve error message for incompatible MATMUL arguments
Print the full shapes of both argument when the dimensions that must match do not do so. Differential Revision: https://reviews.llvm.org/D132153
This commit is contained in:
parent
f29401fcdf
commit
f5884fd9de
@ -184,9 +184,11 @@ static inline void DoMatmul(
|
||||
}
|
||||
SubscriptValue n{x.GetDimension(xRank - 1).Extent()};
|
||||
if (n != y.GetDimension(0).Extent()) {
|
||||
terminator.Crash("MATMUL: arrays do not conform (%jd != %jd)",
|
||||
terminator.Crash("MATMUL: unacceptable operand shapes (%jdx%jd, %jdx%jd)",
|
||||
static_cast<std::intmax_t>(x.GetDimension(0).Extent()),
|
||||
static_cast<std::intmax_t>(n),
|
||||
static_cast<std::intmax_t>(y.GetDimension(0).Extent()));
|
||||
static_cast<std::intmax_t>(y.GetDimension(0).Extent()),
|
||||
static_cast<std::intmax_t>(y.GetDimension(1).Extent()));
|
||||
}
|
||||
using WriteResult =
|
||||
CppTypeFor<RCAT == TypeCategory::Logical ? TypeCategory::Integer : RCAT,
|
||||
|
Loading…
x
Reference in New Issue
Block a user