This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/46644] Built-in memcpy() does not test for unaligned destination address on ARM
- From: "eblot.ml at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 24 Nov 2010 19:17:11 +0000
- Subject: [Bug target/46644] Built-in memcpy() does not test for unaligned destination address on ARM
- Auto-submitted: auto-generated
- References: <bug-46644-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46644
--- Comment #1 from Emmanuel Blot <eblot.ml at gmail dot com> 2010-11-24 19:17:01 UTC ---
Sorry, output assembler in last example (32-bit) is:
00000000 <memcpy_test>:
0: e59f3014 ldr r3, [pc, #20] ; 1c <memcpy_test+0x1c>
4: e5932000 ldr r2, [r3]
8: e59f3010 ldr r3, [pc, #16] ; 20 <memcpy_test+0x20>
c: e5922000 ldr r2, [r2]
10: e5933000 ldr r3, [r3]
14: e5832000 str r2, [r3]
18: e12fff1e bx lr