https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107785
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I suspect you have a signed integer overflow in this code. And in c/c++, signed integer overflow is undefined behavior.
pinskia at gcc dot gnu.org via Gcc-bugs Mon, 21 Nov 2022 01:15:10 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107785
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I suspect you have a signed integer overflow in this code. And in c/c++, signed integer overflow is undefined behavior.