This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/64306] [SH] Improve unaligned loads and stores
- From: "olegendo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 17 Dec 2014 01:24:05 +0000
- Subject: [Bug target/64306] [SH] Improve unaligned loads and stores
- Auto-submitted: auto-generated
- References: <bug-64306-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64306
--- Comment #1 from Oleg Endo <olegendo at gcc dot gnu.org> ---
If the alignment/offset of an unaligned 32 bit store is known to be 16 bit, it
can be done with something like:
mov r5,r0
mov.w r0,@({0|2},r4)
shlr16 r0
mov.w r0,@({2|0},r4)