[llvm-bugs] [Bug 30378] New: ARM/Windows calls to unavailable function __moddi3

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 14 02:13:41 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=30378

            Bug ID: 30378
           Summary: ARM/Windows calls to unavailable function __moddi3
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
          Assignee: unassignedbugs at nondot.org
          Reporter: martin at martin.st
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 17260
  --> https://llvm.org/bugs/attachment.cgi?id=17260&action=edit
Sample input data

When targeting ARM/Windows, 32 bit remainder operations get mapped to __rt_sdiv
+ mls properly, but 64 bit operations end up as calls to __moddi3, which
doesn't exist in the MSVC builtins library.

The attached sample data shows how it behaves for these operations (built with
"llc -mtriple thumbv7-windows rem64.ll -o -").

One attempt at solving this has been made in https://reviews.llvm.org/D24076.

-- 
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/20160914/8382bf74/attachment.html>


More information about the llvm-bugs mailing list