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

Renato Golin
Mon, 09 Dec 2013 11:27:04 -0000

On 9 December 2013 07:56, Tim Northover <t.p.northover at gmail.com>
wrote:
> If NetBSD uses the aeabi ones instead, it probably needs some extra
> checks added to the code. I believe ELF targets currently decide based
> on whether the final part of the triple is "-eabi" or not (as
opposed
> to "-gnueabi", ...), though I haven't looked at the code
recently.

Hi Tim,

You are correct, the target triple must contain "eabi", not
"gnueabi".
If you are using this on your target triple, than it's a front-end
bug, not a lowering one.

Also, note that GNU tools support the whole AEABI, so not using
gnueabi doesn't mean that it'll be incompatible with GNU tools, just
that the ARM EABI will be used instead of the GNU one.

Also note that, for 64-bit types, we still have a lowering bug where
the GNU variant is used for modulo.

This is open here:

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

and here:

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

Weiming is working on it, if this is important for you, please add
yourself to the bugs and let us know your concerns.

cheers,
--renato