[PATCH] Use ".arch_extension" ARM directive to specify the additional CPU features

Renato Golin renato.golin at linaro.org
Thu Feb 19 08:19:15 PST 2015


On 18 February 2015 at 21:46, Eric Christopher <echristo at gmail.com> wrote:
> Right, but there are other ones. Like:
>
> -mcpu=krait
> -mattr=-v7,+v6,-hwdiv,-hwdiv-arm,-vfp4,-vfp3,+vfp2,-neon,-t2dsp,+slowfpvmlx,-aclass,-trustzone
>
> Most of those likely aren't needed?

True. Sumanth, can you clean that up a bit? Or are they all needed to
avoid conflicts within the arguments?


> Would be nice, yes.

Ok. Sumanth, can you split the patch in two again, please? Sorry for
the trouble.


> So it's quite literally taking the place of a command line option? Otherwise
> gas can't handle the instruction or what? Can I get some more background
> here please?

Yeah, that's it. GAS (and IAS) only accept SDIV / UDIV IFF the CPU
supports it. A15 does, but not A9. .arch_extension is a way to let the
assembler accept the instruction. Same as .fpu directive.

cheers,
--renato



More information about the llvm-commits mailing list