]> granicus.if.org Git - clang/commit
[ARM] Set default alignment to 64bits
authorSimi Pallipurath <simi.pallipurath@arm.com>
Fri, 26 Jul 2019 15:05:19 +0000 (15:05 +0000)
committerSimi Pallipurath <simi.pallipurath@arm.com>
Fri, 26 Jul 2019 15:05:19 +0000 (15:05 +0000)
commitaa99b31ab47bc8a56a4868ecd3ce420d4bee212a
tree066fedbca41fe00854369cea256231e6bc4389ee
parent9cb2a086af566683f0ac372e20dfa40a60ae55fa
[ARM] Set default alignment to 64bits

The maximum alignment used by ARM arch
is 64bits, not 128.

This could cause overaligned memory
access for 128 bit neon vector that
have unpredictable behaviour.

This fixes: https://bugs.llvm.org/show_bug.cgi?id=42668

Patch by: Diogo Sampaio(diogo.sampaio@arm.com)

Differential Revision: https://reviews.llvm.org/D65000

Change-Id: I5a62b766491f15dd51e4cfe6625929db897f67e3

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367119 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets/ARM.cpp
test/CodeGen/ARM/exception-alignment.cpp [new file with mode: 0644]
test/SemaCXX/warn-overaligned-type-thrown.cpp