This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/66012] Sub-optimal 64bit load is generated instead of zero-extension
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 23 Dec 2015 23:29:52 +0000
- Subject: [Bug tree-optimization/66012] Sub-optimal 64bit load is generated instead of zero-extension
- Auto-submitted: auto-generated
- References: <bug-66012-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66012
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Happens on aarch64 also:
test:
adrp x0, l
add x1, x0, :lo12:l
ldr x1, [x1, 8]
ldr w0, [x0, #:lo12:l]
orr x0, x0, x1, lsl 32
ret