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

Renato Golin renato.golin at linaro.org
Mon Feb 2 11:35:58 PST 2015

In http://reviews.llvm.org/D7316#116989, @sgundapa wrote:

> Renote, I am not sure on what you meant by this ?
> > You'll also want to change the binary output (object files), so that it doesn't matter which output you chose, the results will be the same. That also involves changing the build attributes.

So, in the integrated assembler, we deal with .fpu, .arch etc and change the feature bits, so that the IAS can cope with changing the default attributes. So, if you add tests, you'll have to make sure both assembly output has the new flag, but as well that the IAS works by understanding it from either internally, by emitting the correct instruction your Krait CPU can, but not A9, as well as being able to read an assembly file with A9 as CPU + arch_extension, or even "krait" as CPU, and not fail with "invalid instruction".

Does that make sense?



More information about the llvm-commits mailing list