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

Reply via email to