ARM: cortex-m0 doesn't support unaligned memory access.
authorJim Grosbach <grosbach@apple.com>
Wed, 2 Apr 2014 19:28:13 +0000 (19:28 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 2 Apr 2014 19:28:13 +0000 (19:28 +0000)
commitacb6d9834a9a3b47bc77803a5871dfb8d7dffca0
tree1cb61fb522d0d777ce42761f9f45cab8e4433561
parentb4e30b31e9d8e43c3bede8d199f8bedf820be212
ARM: cortex-m0 doesn't support unaligned memory access.

Unlike other v6+ processors, cortex-m0 never supports unaligned accesses.
From the v6m ARM ARM:

"A3.2 Alignment support: ARMv6-M always generates a fault when an unaligned
access occurs."

rdar://16491560

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205452 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMSubtarget.cpp
test/CodeGen/Thumb/cortex-m0-unaligned-access.ll [new file with mode: 0644]