<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:spatel+llvm@rotateright.com" title="Sanjay Patel <spatel+llvm@rotateright.com>"> <span class="fn">Sanjay Patel</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Vectorizer produces wrong code (div by zero)"
   href="https://llvm.org/bugs/show_bug.cgi?id=17854">bug 17854</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;">CC</td>
           <td>
                
           </td>
           <td>spatel+llvm@rotateright.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">See Also</td>
           <td>
                
           </td>
           <td>https://llvm.org/bugs/show_bug.cgi?id=25572, https://llvm.org/bugs/show_bug.cgi?id=8100, https://llvm.org/bugs/show_bug.cgi?id=6050
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>INVALID
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Vectorizer produces wrong code (div by zero)"
   href="https://llvm.org/bugs/show_bug.cgi?id=17854#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Vectorizer produces wrong code (div by zero)"
   href="https://llvm.org/bugs/show_bug.cgi?id=17854">bug 17854</a>
              from <span class="vcard"><a class="email" href="mailto:spatel+llvm@rotateright.com" title="Sanjay Patel <spatel+llvm@rotateright.com>"> <span class="fn">Sanjay Patel</span></a>
</span></b>
        <pre>The program has undefined behavior because it uses feenableexcept() without
#pragma STDC FENV_ACCESS ON. If there's no warning for that, that seems like a
worthy but different bug.

See <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - SIGFPE received when a program is compiled with Clang but not with GCC"
   href="show_bug.cgi?id=25572#c5">bug 25572, comment 5</a> for more details about the pragma.

Clang doesn't support changing the FP env (<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - clang/llvm don't support C99 FP rounding mode pragmas (FENV_ACCESS etc)"
   href="show_bug.cgi?id=8100">bug 8100</a>), so it assumes that FP ops
have no side effects (<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - floating-point operations have side effects"
   href="show_bug.cgi?id=6050">bug 6050</a>).

...but there's some hope this will improve:
<a href="http://reviews.llvm.org/D14067">http://reviews.llvm.org/D14067</a></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>