Relax this check to silently swallow FE_INEXACT, following directions

from rdar://8452472. This unbreaks gcc.dg/builtins-17.c.

llvm-svn: 114368
This commit is contained in:
Dan Gohman 2010-09-20 22:32:25 +00:00
parent b8811b9ed9
commit 6eb9263898

View File

@ -38,7 +38,7 @@ static inline bool llvm_fenv_testexcept() {
if (errno_val == ERANGE || errno_val == EDOM)
return true;
#ifdef HAVE_FENV_H
if (fetestexcept(FE_ALL_EXCEPT))
if (fetestexcept(FE_ALL_EXCEPT & ~FE_INEXACT))
return true;
#endif
return false;