On Sat, Oct 31, 2026 at 10:07:06AM +0100, Uros Bizjak wrote:
> On Sat, Oct 31, 2026 at 8:23 AM Michael Meissner <[email protected]> 
> wrote:
> >
> > This patch adds support for defining vectorization support for 16-bit 
> > floating
> > point values.  This is done by converting the 16-bit floating point vector
> > values to 32-bit floating point vectors, doing the operation in 32-bits and
> > converting it back to the appropriate 16-bit floating point format.
> 
> FYI: vectorization currently fails when __builtin_sqrtf16 is used,
> please see PR128279 [1].
> 
> [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128279
> 
> Uros.

Thanks for the heads up.  At the current time, it won't be a problem on
the PowerPC with the current patches won't vectorize _Float16.  See:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128432

I do wonder how well things like sqrt or divide works as the number of
mantissa bits shirnks.  But this is a guess on my part.  I don't know
how these shorter types are uuused in practice.  And with 8-bit
floating point types on the horizon, it may be more of an issue.  But
that being said, we should optimize things as well as possible.

-- 
Michael Meissner, IBM
PO Box 98, Ayer, Massachusetts, USA, 01432
email: [email protected]

Reply via email to