[LLVMbugs] [Bug 18187] New: ARM back-end generating GNU EABI div/mod library calls in EABI mode

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Dec 9 06:24:54 PST 2013


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

            Bug ID: 18187
           Summary: ARM back-end generating GNU EABI div/mod library calls
                    in EABI mode
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
          Assignee: unassignedbugs at nondot.org
          Reporter: renato.golin at linaro.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

$ cat mod.c
int f(int a, int b) { return a % b; }
unsigned int g(unsigned int a, unsigned int b) { return a % b; }

$ clang -target arm-elf-eabi -S mod.c -o - | grep mod
.file "mod.c"
bl __modsi3
bl __umodsi3

$ clang -target arm-none-eabi -S mod.c -o - | grep mod
.file "mod.c"
bl __aeabi_idivmod
bl __aeabi_uidivmod

For conformance reasons, both should output the EABI calls.

-- 
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/20131209/a25dacda/attachment.html>


More information about the llvm-bugs mailing list