Support unaligned load/store on more ARM targets

Renato Golin renato.golin at linaro.org
Wed May 15 14:01:34 PDT 2013


On 15 May 2013 21:47, Anton Korobeynikov <anton at korobeynikov.info> wrote:

> "v7-darwin-and-linux", really. What if you use clang/llvm targeting
> bare metal arm-eabi target?
>

This is why I requested the flag. Maybe "all" is a bit too wide, but
bare-metal code can do unaligned access, just set SCTLR.A to zero. I don't
know what is the default, though, but I'm guessing it's zero.

We could be conservative and only enable when we're sure it'll work (L on
v6, D+L on v7), but GCC seems to default to unaligned for all v6 and v7
(except v6M), this is why I recommend it on.

The default doesn't matter much if we have the flag. The only nicety is to
have the bare-metal default on the state that bare metal folks most often
use, which I don't know what it is. I don't mind either way...

cheers,
--renato
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130515/58db1534/attachment.html>


More information about the llvm-commits mailing list