From: Uros Bizjak Date: Fri, 2 Aug 2019 12:21:40 +0000 (+0200) Subject: * gcc.dg/torture/pr91323.c: Also check comparison results. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0c60e39e2574c5a315ac5c94c19642331cd06504;p=gcc.git * gcc.dg/torture/pr91323.c: Also check comparison results. From-SVN: r274008 --- diff --git a/gcc/testsuite/gcc.dg/torture/pr91323.c b/gcc/testsuite/gcc.dg/torture/pr91323.c index 3da2dfbe2db..ce0d7f3cb2b 100644 --- a/gcc/testsuite/gcc.dg/torture/pr91323.c +++ b/gcc/testsuite/gcc.dg/torture/pr91323.c @@ -36,15 +36,15 @@ main (void) feclearexcept (FE_INVALID); r = f1 (nanf, argf); - if (fetestexcept (FE_INVALID)) + if (r != 0 || fetestexcept (FE_INVALID)) __builtin_abort (); r = f2 (nanf, argf); - if (fetestexcept (FE_INVALID)) + if (r != 0 || fetestexcept (FE_INVALID)) __builtin_abort (); r = f3 (nanf, argf); - if (!fetestexcept (FE_INVALID)) + if (r != 0 || !fetestexcept (FE_INVALID)) __builtin_abort (); return 0;