<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:i@maskray.me" title="Fangrui Song <i@maskray.me>"> <span class="fn">Fangrui Song</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - sqrt(denormal float) gives -infinity with fast-math"
   href="https://bugs.llvm.org/show_bug.cgi?id=34994">bug 34994</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Assignee</td>
           <td>unassignedbugs@nondot.org
           </td>
           <td>spatel+llvm@rotateright.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>i@maskray.me
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - sqrt(denormal float) gives -infinity with fast-math"
   href="https://bugs.llvm.org/show_bug.cgi?id=34994#c19">Comment # 19</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - sqrt(denormal float) gives -infinity with fast-math"
   href="https://bugs.llvm.org/show_bug.cgi?id=34994">bug 34994</a>
              from <span class="vcard"><a class="email" href="mailto:i@maskray.me" title="Fangrui Song <i@maskray.me>"> <span class="fn">Fangrui Song</span></a>
</span></b>
        <pre>Mark as fixed.

x86-64 and aarch64

% for i in ieee preserve-sign positive-zero; do clang++ a.cc -ffast-math
-fdenormal-fp-math=$i && ./a.out; done
sqrt(1.00000005e-34) = 9.99999984e-18
sqrt(1.00000004e-36) = 1.00000005e-18
sqrt(0) = 0
sqrt(0) = 0
sqrt(0) = 0
sqrt(0) = 0
sqrt(0) = 0
sqrt(1.00000005e-34) = 9.99999984e-18
sqrt(1.00000004e-36) = 1.00000005e-18
sqrt(0) = 0
sqrt(0) = 0
sqrt(0) = 0
sqrt(0) = 0
sqrt(0) = 0
sqrt(1.00000005e-34) = 9.99999984e-18
sqrt(1.00000004e-36) = 1.00000005e-18
sqrt(0) = 0
sqrt(0) = 0
sqrt(0) = 0
sqrt(0) = 0
sqrt(0) = 0

ppc64le (POWER9)

sqrt(1.00000005e-34) = 9.99999984e-18
sqrt(1.00000004e-36) = 1.00000005e-18
sqrt(9.99999935e-39) = 9.99999968e-20
sqrt(9.9999461e-41) = 9.99997303e-21
sqrt(1.0005271e-42) = 1.00026351e-21
sqrt(9.80908925e-45) = 9.90408493e-23
sqrt(0) = 0
sqrt(1.00000005e-34) = 9.99999984e-18
sqrt(1.00000004e-36) = 1.00000005e-18
sqrt(9.99999935e-39) = 9.99999968e-20
sqrt(9.9999461e-41) = 9.99997303e-21
sqrt(1.0005271e-42) = 1.00026351e-21
sqrt(9.80908925e-45) = 9.90408493e-23
sqrt(0) = 0
sqrt(1.00000005e-34) = 9.99999984e-18
sqrt(1.00000004e-36) = 1.00000005e-18
sqrt(9.99999935e-39) = 9.99999968e-20
sqrt(9.9999461e-41) = 9.99997303e-21
sqrt(1.0005271e-42) = 1.00026351e-21
sqrt(9.80908925e-45) = 9.90408493e-23
sqrt(0) = 0

The input constants the 3 arches use are the same.</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>