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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to