Summary: | FE_INVALID flag not set on comparison with NAN (unordered) | ||
---|---|---|---|
Product: | gcc | Reporter: | Vincent Lefèvre <vincent-gcc> |
Component: | c | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 4.8.0 | ||
Target Milestone: | --- | ||
See Also: | https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34678 | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | 2013-01-17 00:00:00 | |
Bug Depends on: | |||
Bug Blocks: | 16989 |
Description
Vincent Lefèvre
2013-01-17 13:13:42 UTC
The comparison is dead. FENV_ACCESS is not implemented (side-effects on FENV are not preserved). Use if (d <= 0.0) __asm(""); GCC uses ucomisd for the comparison, even with -fsignalling-nans. |