<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/102559>102559</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[AArch64] Crash on the Instruction Selection for llvm.aarch64.sve.tbl.nxv2f32
</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>
* Since commit 3f9005eb89, we support the intrinsic **lvm.aarch64.sve.tbl**, usual the type is just a legal type, so it can works fine.
* But we may still need promote this operator's operand to make it more reliable, now we don't support **llvm.aarch64.sve.tbl.nxv2f32**
> fatal error: error in backend: Do not know how to promote this operator's operand
* test: https://gcc.godbolt.org/z/bh5KcWoYK
```
define void @_Z3fooPfPjS_i(ptr %dest, <vscale x 2 x i32> %wide.load1721) {
%0 = tail call <vscale x 2 x float> @llvm.aarch64.sve.tbl.nxv2f32(<vscale x 2 x float> zeroinitializer,
<vscale x 2 x i32> %wide.load1721)
store <vscale x 2 x float> %0, ptr %dest, align 4
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare <vscale x 2 x float> @llvm.aarch64.sve.tbl.nxv2f32(<vscale x 2 x float>, <vscale x 2 x i32>)
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyclFFv6zYPhn-NckMcw6HiJL7whdt8AT6cmwP0YthuDmSbjtXKYiDRSdNfP8h1O6xbu2FAkEiRSb7vI5omRnvyRJUq7lRxWJlJBg7Vpe_6ftVwd6sU1vBgfUvQ8jhaAd2XeV5Qsy8V3sOVIE7nMwcBGQisl2B9tC0orBXW7jJmxoR22G6yeKFMGvd6kGKnOBk3h8ntTGAjPE5RwICjUzq4nSk9FhmsQGs8XDk8Reitp0zlB5XXyzfWcDdJ0jKaG0SxzoEn6uAceGQhkMFG4DMFIxwU7paN70AYRvNEqcLIgSCQs6Zxc2HP15SzY69wJ-8-F2d_Yy3zzxfsNS4WZ3EAAEr_D3ojxgGFwEHp-nUB1kNj2ifyXfrvwOBZ4CnVHfiatP2jgY8chKKkXIPIOSpdKzwqPJ7aNjtx17CTjMNJ4fFF4bEZiu_tL_zr9yV8my-fedtRAg0Xth2oTf7zN90z_-h_PD78tAr3ZwmgsOhSPbwHpe8vsTWO4BkQnsFqTK4VFlfbUebYdOsdrhWWoHZ3b2gUFjkofQAx1kFrnPtLot6xkTnVJv-a-f7T0BcKbL0Va5x9oaDwfhHw71W_KY6SuuRzkVjkCccHOsbZk4fNW5JAMnNduO8Of7pFfQfHybdi2UMtEtI1gudEJzULeO4DEXiON9-C58lfre_gap0LJFPwMNLI4aZw79nTu_iOWme-FP-fCX_eAe_V37tr1VW6K3VpVlStd6jX212p9WqocJv3-64rCtrst0bvur7fYV40ayoRabtf2Qpz3OT7vMzXm0LrrCxo2-BWb_WuLLEp1Can0ViXzTY4nFY2xomqdY5FUa6cacjFedQherrCfKoQ0-QLVQr61kynmDjYKPGPNGLFzTOyrmc0qjjAfTBxAPbzAPu_jxKm1zt7IEevq54DfEV0NQVXfXhTrQxTk7U8Kjym2OXn2znwI7Wi8DirjgqPi61Lhb8HAAD__9dLzFw">