[llvm-dev] Aarch64: unaligned access despite -mstrict-align

Jerome Forissier via llvm-dev llvm-dev at lists.llvm.org
Mon Jun 1 09:51:43 PDT 2020


On 6/1/20 6:26 PM, Sjoerd Meijer wrote:
> Sorry, quick message to ignore what I wrote before, I got myself confused (probably you too),

:)

> With a recent trunk build I get this:
> 
> f:
>         adrp    x8, g
>         ldr     x8, [x8, :lo12:g]
>         mov     w2, #16
>         mov     x1, x0
>         mov     x0, x8
>         b       memcmp
> 
> This looks more correct, and I need to look a bit more into this (and how clang 10.0.0 behaves).

Indeed I would be quite happy with that ;-) Good to know that master
generated this. If you would you like me to bisect and identify the
commit that changed the behavior, please let me know.

Thanks,
-- 
Jerome


More information about the llvm-dev mailing list