<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/60752>60752</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang generates wrong code for very large alignment
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
efriedma-quic
</td>
</tr>
</table>
<pre>
Testcase:
```
int a[1LL<<32] __attribute((aligned(1ULL<<32))) = {};
```
Currently generates `@a = dso_local global [4294967296 x i32] zeroinitializer, align 16`, somehow discarding the alignment.
See also discussion at https://reviews.llvm.org/D142584#inline-1386122 ; apparently we're truncating an integer at https://github.com/llvm/llvm-project/blob/main/clang/utils/TableGen/ClangAttrEmitter.cpp#L532 .
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUUsGOmzAQ_ZrhYm2Ex2DgwGGTlF721u15ZWBCXBk7tYdNd7--gmzbSO2lkjUIvad5b96MSclOnqiFcg_lMTMLn0Ns6RQtjbN5-L7YIevD-NY-U-LBJAL1CPkR8l9V5x9v-7WehYFyL5-eQB1AHRRCeRQvL4Y52n5hAqwBa-NW2RGwll_vqNjcngB1FFDtoTqC2v9T6VYPS4zk2b2JiTxFw5TESilys_UYU3hxYTBOTC70xgko9wU2RaMrbLT4IezN4DvFYL1la5x9pwh4EJtFIfXaDg8ihZnO4SpGmwYTR-snwWe6sWbyvLu39YVWJIWNvaRkgxeGxZn5ktYAsQPsIr1auqadc6_zLsQJsDvKAsu6AFTWO-vpQapaS0QBai_M5WI-hr0SYBVJcFz8YHg1Y7ywnmmi-LfSZPm89LshzIDdKvfxebjE8I0GBux6F3rAbjbWA3aDM371s7B1CbB7Nr2jz7RChxV6ZI6fZstMcTdcLoDqqVQodtnYqrFRjcmolbrSRV6XqsjOrVa5GupqoEJWpRpGqbTOc6UVjXV1KpvMtpijylEWKNe6qyqVY9FLc9Ky1FJDkdNsrPsdV2ZTWqjVeVVi5kxPLm1XjOjpKjYQcF1uFttt2H6ZEhS5s4n_hJ6xZUftNvDdDV1j8JMYwkjiFKJ4pfgmnInT3cKzJbr2v3PefK2Rbr5_BgAA__8LiRRa">