<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/64125>64125</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[LV] unable vectorize related to gather/scatter code
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
vfdff
</td>
</tr>
</table>
<pre>
test: https://gcc.godbolt.org/z/ahvq1j7TW
* llvm failed with vector
```
.LBB0_2: // =>This Inner Loop Header: Depth=1
ldpsw x11, x12, [x10, #-4]
add x10, x10, #8
subs x8, x8, #1
ldr w11, [x1, x11, lsl #2]
ldr w12, [x1, x12, lsl #2]
add w11, w11, #1
add w12, w12, #2
stp w11, w12, [x9, #-4]
add x9, x9, #8
b.ne .LBB0_2
```
* gcc: sve with tailFold
```
.L3:
ld1w z30.s, p7/z, [x2, x4, lsl 2]
ld1w z31.s, p7/z, [x1, z30.s, sxtw 2]
add z31.s, z31.s, z29.s
st1w z31.s, p7, [x0, x4, lsl 2]
incw x4
whilelo p7.s, x4, x3
b.any .L3
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEVNFuqzgQ_RrzYhXhMYTkgYdks2hX6mO1-3hl8BBcuZiLnYT2669sSHJD094oyhBxzpzj49EIa9WhQyxItiPZPhJH15qhODWyaaLKyPfCoXWEb2nrXG8J3xIoCZSHuo4PRlZGu9gMBwLlB4FStKef7DV_-Z8ke5Js51_YUq1Pb7QRSqOkZ-VaesLamWEGrJL5G_7Gz7td8gO85h8-kxVK-J7wv19aZem_XYcDfTamp_-gkDj4LnvsXUv4nk39L2wte3umlI6MEfiLjgx8IdluZEl4Av6Ukmx_zxJS0hlww63vMfZYWV_HdYCtZ9Qn_SHU86QfhKe2oWirPQk-ObjxYMGDb3ne-W96F9lPvm44mHAw42BxStff97va2XwfX4gmYK7IRYBV3KGvl1F4NCa34TrUtb9me8JptpxQujRafjFd3A_xIlHmB4F-8CS23lGfTwM9HSeca0wv4T66kQufPeKHeK697ejOD3r4YK782wNsYruM_YHYJJR8aVR1dSCN6X2zc6s0akP7fOo1kUe-vA7RvYfr4ItMI1lwueEbEWHBVpuE54yvWdQWqwYFz_k65xJyiUI0KOosSzcSm3XCmkgVkABPclgxxlfA4rxJs1Smdc0SbHIBJE3wTSgd-93hd0ykrD1isUoZZJEWFWobthZAh2caXhLwZ46GwnOequPBkjTRyjp76-KU02HdPf9Hsj09dqLSOO8j9YF0QC0cSuoMPQjX4kCgtLVwDgdaG4nRcdDFYhkq1x6ruDZvBEovNJenfjCvWDsCZbBnCZTB_q8AAAD__zBGaFM">