Hi Robin,
Thanks for the review and nit, I've addressed these points in v4:
* Added reservations for the four new instruction types to all
scheduling models, using the existing unknown/dummy reservations
where appropriate.
* Wrapped all seven dot-product patterns in an outer |UNSPEC_REDUC|,
following the existing reductions, to avoid describing the
accumulator as an elementwise masked result.
* Moved the integer extension and ELEN conditions into
|VI_ZVQWDOTA|and |VI_ZVQWBDOTA|.
* Changed the ci check to use |GET_MODE_BITSIZE (acc_mode).is_constant
()|, while retaining the bound based on physical VLEN.
Also checked the Sashiko review and fixed the FP8 disabled-mode
diagnostic ICE, with a regression test.
The checking-enabled C/C++ build and targeted RV32/RV64 tests passed,
including checks of all 16 scheduling models. All changes are folded
into the four patches.
Best regards,
Jiawei
On 2026/10/28 19:41, Robin Dapp wrote:
I'm only realizing this now but why does this look different than
existing reductions? Those are wrapped inside UNSPEC entirely but here
we're using the regular scheme. I'm not sure this is entirely correct
here even if no pass actually uses that information yet. Could you
re-check? I.e. right now we claim that a mask of the same size as the
sources can "turn off" elements of the accumulator.
Also, we tend to keep the insn condition small and wrap the condition in
an iterator. I think that would also work here:
(define_mode_iterator VI_ZVQWDOTA or something
Nit: I'd check acc_mode.is_constant () instead. It shouldn't matter as
builtins always use VLA modes (even if they are constant) but makes it
more consistent.