[LLVMdev] ARM EABI and modulo

Joerg Sonnenberger
Mon, 09 Dec 2013 00:41:23 -0000

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?

Joerg