https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101479
--- Comment #4 from Simon Thornington <Simon.Thornington at tssecurities dot com> --- I'll add that changing close_to_zero from fabs(x) < 0.5 to x == 0.0 || fabs(x) < 0.5 everything starts to work as I'd expect again...