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

Eli Friedman via llvm-dev llvm-dev at lists.llvm.org
Mon Jun 1 10:34:49 PDT 2020


See https://reviews.llvm.org/D76113 and my followup https://reviews.llvm.org/D77599 .  (I didn't really think about it at the time, but maybe worth nominating for 10.0.1.)

-Eli

-----Original Message-----
From: llvm-dev <llvm-dev-bounces at lists.llvm.org> On Behalf Of Jerome Forissier via llvm-dev
Sent: Monday, June 1, 2020 9:52 AM
To: Sjoerd Meijer <Sjoerd.Meijer at arm.com>; llvm-dev at lists.llvm.org
Cc: op-tee at lists.trustedfirmware.org
Subject: [EXT] Re: [llvm-dev] Aarch64: unaligned access despite -mstrict-align

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
_______________________________________________
LLVM Developers mailing list
llvm-dev at lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev


More information about the llvm-dev mailing list