[cfe-dev] ARM EABI and modulo

Joerg Sonnenberger joerg at britannica.bec.de
Sun Dec 8 16:41:23 PST 2013

Hi all,
one issue found during the NetBSD/ARM tests is the following.
Consider this input for EARM:

    int f(int a, int b) { return a % b; }
    unsigned int g(unsigned int a, unsigned int b) { return a % b; }

At the moment, this will call __modsi3 and __umodsi3, even though those
functions are not part of AAPCS. Should this be considered a lowering
bug in the ARM target?


More information about the cfe-dev mailing list