<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/75557>75557</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
another OOB InsertElement -> OOB store
</td>
</tr>
<tr>
<th>Labels</th>
<td>
llvm:codegen,
miscompilation
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
regehr
</td>
</tr>
</table>
<pre>
this is like https://github.com/llvm/llvm-project/issues/74248 and again affects all backends that I tried
```llvm
define void @insertelt_v8i64_store(ptr %0, i32 %1) {
%3 = load <8 x i64>, ptr %0, align 64
%4 = insertelement <8 x i64> %3, i64 -1, i32 %1
store <8 x i64> %4, ptr %0, align 64
ret void
}
```
becomes:
```
insertelt_v8i64_store:
mov x8, #-1 // =0xffffffffffffffff
str x8, [x0, w1, uxtw #3]
ret
```
cc @nunoplopes @tanmaytirpankar
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykU8tu4zAM_Br5QiSwKb9y8CFpGqCnfkJB27StrSwFkpKmf7-wkj63iz2sECgWbc5QwyF5r0bD3IhiJ4p9QqcwWdc4HnlySWv71yZMyoPyoNUzwxTC0Qu5FXgQeBhVmE7turOzwIPW57e_1dHZX9wFgQfl_Ym9wEOVY14DmR5oJGWAhoG74IG0hpa6Zza9hzBRgAcITnEv0r1It7e9TK-_SBJDPQ_KMJyt6kHkqTKeXWAdns61KvMnH6xjgfUxOBBYpALvQElcnjOBGxDV7ooDS0iCkHvQlnoQ8q6GC6gyF_J-yfqMQFqNBsr8U2oeU9_oeWYTvmJE_Ehf5rDKvhRyg4nF_pmV_4vecYgC3ESq9t_Uuh5b7uzMsWs_vf5ZObmFtwZsZnsW6eZSLyUIlKsM_rautlgUSS_Dt_UO54P7gCt2l3i1lyjM6RJeFgopiv37947Dj4Vf965b2m9Oxh61PbJfToHMTK9BuSOZZ3JJ38h-IzeUcJNVKZZZJiUmUzPQQJzJsm4HlkNfVRsipLLCoe43eTskqsEUZYZZkUpZSFy3JOuir7HqJRZMJPKUZ1J6vRhzbd2YRMM3VVEUVaKpZe3jbCFG68ptZ3se2QhEgXcCcVa-s_NRaQrKxnCxT1wTx6g9jV7kqVY--A-GoILmhowNEzt4fNzBQ2zh_c19q8U-Szh2Mjk53fzH2C4X-R0AAP__WAoyXQ">