https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123759

Xi Ruoyao <xry111 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
                 CC|                            |xry111 at gcc dot gnu.org
   Last reconfirmed|                            |2026-01-23
             Status|UNCONFIRMED                 |NEW

--- Comment #2 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
I think the point here is __lsx_vftintrne_w_s should be changed to return v4i32
instead, as the output indeed should be a v4i32.  On the contrary treating the
output as __m128i (v2i64) is quite unsafe.  But the change would be an API
break so we cannot implement it.

I'd not recommend people to use -flax-vector-conversions as the GCC
documentation clearly states "this option should not be used for new code."

Maybe the best course is deprecate __lsx_vftintrne_w_s and add something like
__lsx_vftintrne_w_s_2 instead to return a v4i32.

Reply via email to