Fix test failure with 374562 on Hexagon
authorErich Keane <erich.keane@intel.com>
Fri, 11 Oct 2019 16:30:45 +0000 (16:30 +0000)
committerErich Keane <erich.keane@intel.com>
Fri, 11 Oct 2019 16:30:45 +0000 (16:30 +0000)
commitd2a98c1dd3e9ca759d78992cadfbdf994e544838
treea29da648288f058f00d51aa8930f29e2f2fca05a
parentbb282f47511e83fdb6761a6bda185e2062d7a099
Fix test failure with 374562 on Hexagon

__builtin_assume_aligned takes a size_t which is a 32 bit int on
hexagon.  Thus, the constant gets converted to a 32 bit value, resulting
in 0 not being a power of 2.  This patch changes the constant being
passed to 2**30 so that it fails, but doesnt exceed 30 bits.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@374569 91177308-0d34-0410-b5e6-96231b3b80d8
test/Sema/builtin-assume-aligned.c