https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124434
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2026-03-10
Ever confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So a couple of things:
long double xl = 0 ;
long double yl = 0.5 ;
long double zl = 1 ;
for( int i = 0 ; i < 1000000000 ; i++ ) xl = xl * yl + zl ;
What options are you using for compiling?
It could be the x87 gets bad with denormals or close to infinitity.
Which case this is not an issue with GCC but rather x87 hardware has those
quarks.