https://bugs.llvm.org/show_bug.cgi?id=46811

Richard Smith <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #3 from Richard Smith <[email protected]> ---
OK, I see the same thing if I use __builtin_isnormal instead:
https://godbolt.org/z/37M8PG -- in particular, the `fcmp`s we generate can set
FE_INVALID on NaN.

On x86_64, those `fcmp`s are replaced by constrained FP intrinsics:
https://godbolt.org/z/GK9Ejh

So this is another duplicate of 46799: this code was compiled assuming the
default floating point environment and that FP exceptions would not be
inspected. Use of <fenv.h> facilities from that environment is undefined, and
in this case that's manifesting as isnormal setting a floating point exception.

*** This bug has been marked as a duplicate of bug 46799 ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to