[LLVMbugs] [Bug 21518] New: addvsi3 & subvsi3 don't trap when they should

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Nov 10 07:32:38 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=21518

            Bug ID: 21518
           Summary: addvsi3 & subvsi3 don't trap when they should
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: unassignedbugs at nondot.org
          Reporter: fxcoudert at gcc.gnu.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 13307
  --> http://llvm.org/bugs/attachment.cgi?id=13307&action=edit
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:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62018).

The attached patch fixes it. I hope it can help.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141110/fcdbfde9/attachment.html>


More information about the llvm-bugs mailing list