[LLVMdev] [cfe-dev] ARM EABI and modulo

Joerg Sonnenberger joerg at britannica.bec.de
Mon Dec 9 06:11:45 PST 2013


On Mon, Dec 09, 2013 at 01:58:29PM +0000, Renato Golin wrote:
> I can see the error, and it's just a bad selection of choices. I was
> wrong in assuming that the "eabi" at the end would always force it:
> 
> $ clang -target arm-elf-eabi -S mod.c -o - | grep mod
> .file "mod.c"
> bl __modsi3
> bl __umodsi3

I was discussing this with Tim on IRC and he raised the valid question
of a pure mod operation being faster when emulated as it doesn't have to
keep track of the quotient. So it really boils down to whether it has a
fancy enough dress to be called a feature.

Joerg



More information about the llvm-dev mailing list