<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:vlad@tsyrklevich.net" title="Vlad Tsyrklevich <vlad@tsyrklevich.net>"> <span class="fn">Vlad Tsyrklevich</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - static_casting to a large unsigned long long from a double causes an FPE"
   href="https://bugs.llvm.org/show_bug.cgi?id=17686">bug 17686</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;">CC</td>
           <td>
                
           </td>
           <td>vlad@tsyrklevich.net
           </td>
         </tr>

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

         <tr>
           <td style="text-align:right;">Status</td>
           <td>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - static_casting to a large unsigned long long from a double causes an FPE"
   href="https://bugs.llvm.org/show_bug.cgi?id=17686#c11">Comment # 11</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - static_casting to a large unsigned long long from a double causes an FPE"
   href="https://bugs.llvm.org/show_bug.cgi?id=17686">bug 17686</a>
              from <span class="vcard"><a class="email" href="mailto:vlad@tsyrklevich.net" title="Vlad Tsyrklevich <vlad@tsyrklevich.net>"> <span class="fn">Vlad Tsyrklevich</span></a>
</span></b>
        <pre>The reproducer in <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - conversion from double to unsigned raises invalid operation"
   href="show_bug.cgi?id=30885">https://bugs.llvm.org/show_bug.cgi?id=30885</a> still continues
to reproduce. We're generating code that can cause an FPU exception in Jay's
example and his code is totally legal. It seems like Simon's patch fixed the
behavior when it was *profitable* but when it's not profitable it's still not
correct. e.g. Jay's example works correctly with -march=haswell but not
without. However, I'm not familiar enough with the codegen to say if
X86TargetLowering::shouldUseStrictFP_TO_INT() should always return true or what
the correct fix is.</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>