On 6/26/23 12:58, Robin Dapp wrote:
Hi,
this patch adds FP widening and narrowing autovec expanders as well as
tests. Conceptually similar to integer extension/truncation, we emulate
_Float16 -> double by two vfwcvts and double -> _Float16 by two vfncvts.
Optimizations to create widening operations will be added separately.
Regards
Robin
gcc/ChangeLog:
* config/riscv/autovec.md (extend<v_double_trunc><mode>2): New
expander.
(extend<v_quad_trunc><mode>2): Dito.
(trunc<mode><v_double_trunc>2): Dito.
(trunc<mode><v_quad_trunc>2): Dito.
* config/riscv/vector-iterators.md: Add VQEXTF and HF to
V_QUAD_TRUNC and v_quad_trunc.
It looks like you fixed the type of trunc<mode><vdouble_trunc>2 to be a
narrowing vector shift from just a vector shift. This isn't reflected
in the ChangeLog.
I wasn't aware that "Dito" was an accepted spelling. I had to look it
up ;-)
OK with the ChangeLog fixed.
jeff