[LLVMbugs] [Bug 17881] New: srem/urem i64 for ARM aeabi generates __moddi3 instead of __aeabi_ldivmod

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Nov 11 11:22:00 PST 2013


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

            Bug ID: 17881
           Summary: srem/urem i64 for ARM aeabi generates __moddi3 instead
                    of __aeabi_ldivmod
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: weimingz at codeaurora.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11516
  --> http://llvm.org/bugs/attachment.cgi?id=11516&action=edit
test case

For the attached .ll test case, 
llc -mtriple armv8-eabi < mod.ll
should generate __aeabi_ldivmod instead of __moddi3. i32 srem/urem is correct
though.

The cause is when data type is i64, LegalizeInterTypes first directly
converts them to calls to RTLIB::SREM_I64(__moddi3) or
RTLIB::UREM_I64(__umoddi3).

-- 
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/20131111/5bbeed8e/attachment.html>


More information about the llvm-bugs mailing list