<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - addvsi3 & subvsi3 don't trap when they should"
   href="http://llvm.org/bugs/show_bug.cgi?id=21518">21518</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>addvsi3 & subvsi3 don't trap when they should
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>compiler-rt
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>compiler-rt
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>fxcoudert@gcc.gnu.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=13307" name="attach_13307" title="Patch fixing the issue">attachment 13307</a> <a href="attachment.cgi?id=13307&action=edit" title="Patch fixing the issue">[details]</a></span>
Patch fixing the issue

The code in {add,sub}v.i3 routines does not trap when it should, because it
performs the actual add/subtract operation in signed arithmetic, rather than
unsigned. I found this when GCC incorrectly uses the symbols from Mac OS X
Yosemite's libcompiler_rt.dylib, and those fail to abort when they should.
(Original GCC bug report is here, explaining some of the context:
<a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62018">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62018</a>).

The attached patch fixes it. I hope it can help.</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>