[Bug tree-optimization/107046] [13 Regression] Recent FP range work causing inf-2 to be miscompiled on rx-elf

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 27 08:59:34 GMT 2022


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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Ah, probably the

void test(double f, double i)
{
...
  if (i != __builtin_inf())
    abort ();

int main()
{
  test (34.0, __builtin_inf());
...

test is "miscompiled", similar to what we see in povray.

We can probably gate parts of the testcase with

#if __FINITE_MATH_ONLY__ == 0


More information about the Gcc-bugs mailing list