<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - ARM isnormal(long double NaN) raises invalid"
   href="https://bugs.llvm.org/show_bug.cgi?id=46811">46811</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ARM isnormal(long double NaN) raises invalid
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>10.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tydeman@tybor.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>blitzrakete@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>/*
 * isnormal(long double NaN) raises invalid; it should not.
 */

#include <float.h>
#include <math.h>
#include <fenv.h>
#include <stdio.h>

int main(void){
  long double ldnan = NAN;
  long double ldinf = INFINITY;
  int ex;

  feclearexcept( FE_ALL_EXCEPT );
  if( isnormal(ldnan) ){
    (void)printf("<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Need to add product version numbers"
   href="show_bug.cgi?id=1">bug 1</a>: NAN is not normal\n");
  }
  ex = fetestexcept( FE_ALL_EXCEPT );
  if( 0 != ex ){
    (void)printf("<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Customize Bugzilla to have some LLVM flavah"
   href="show_bug.cgi?id=2">bug 2</a>: ex=%#x, FE_INVALID=%#x, ldnan=%Lg\n", ex, FE_INVALID,
ldnan);
  }

  feclearexcept( FE_ALL_EXCEPT );
  if( isnormal(ldinf) ){
    (void)printf("<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WORKSFORME - Linking two .a files explicitly on the command line fails"
   href="show_bug.cgi?id=3">bug 3</a>: INFINITY is not normal\n");
  }
  ex = fetestexcept( FE_ALL_EXCEPT );
  if( 0 != ex ){
    (void)printf("<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - LLC Produced executables randomly crash"
   href="show_bug.cgi?id=4">bug 4</a>: ex=%#x, FE_INVALID=%#x, ldinf=%Lg\n", ex, FE_INVALID,
ldinf);
  }

  return 0;
}

I am not sure if this is a compiler built-in or part of the math library.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>