<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJzNV9tu2zgQ_Rr5hbDBi64PfnBsBwiQdoOkl30LKJGy1cqiIFLZdL9-h7rEstZOHacFCggmh8OZORyekcaxEj_mXzOzRbe3Xz4QhnghkOPjJOfFxqFX8KDpXxRNd0lZO2zFfTd9RtMExbOkLNFUwUShaapKWexKMEQ3Dg12aCONycADWzh45eAFaLqnEVNueI5kVakKtrQTlBUo5sl3WQi7tuRFoQzSMpeJsQv4mWAZeyQNrfREM99FgAgtFlWy9d2bh5WNxharz3e3i49r0LYWroxDhy7RUhXa8ML6AtMOFltih61bAQ0NIETxfDrIw4ebj4939-uVtSFEJCxsgjQegtSNe4lg34sBchcBDff3McjREHef7j-v0SdeQS5H2NmSDlD3XiGSFNh67VGPjUdmA7Cj42aFlpV51HX8BNmHu6kLIVPY1W3qD0c9LNNj2T3M6z5Y6DI8Dtb6Hh2m83xw0zrhOa8ejXrsUFmfIggYxkNzNFxvswEIk23jI1cc6LV0aGhnCEZt1RFKK7UD0cuqGaFhc0KHEp5nXM90Avy2Ykj8TlGoRmWnQcTAARwX4vqpy1y5p0KLK8SYNGt9Gl8IiNAQs2w3Dm6QC4GK-p9eSyk-muxwlOwDl9ZonIalKn9cw4nv5eYQNSxk2siqdW0TQqj_f9cv5AnSA7y9-UnDjv5wvUOzAUWPHaVjtycPjI7xxkKKWXjCNx7Tv6_On1b74u8T1Q5EJUy8SFaX4jGZf329X1jxaAj50pqnnLDzav5NVY-G3s-qew-Hx6qo01xW-cGvqfwW16BkX6n8P7dQz6i5N1cdGtbJZRSEG8Y-P_4mfD8Fe-_nUBCH_AQFG80lFIy8nmgm5tyOhLETnMRHOBniaM_Jrts6-CbZD6M4j5Pd1vdwkuFXOBn6-CQnjxn-Hk6-YfOojW0aZ5AOumNomQuln2TTDCOhCmiIjW2IEUdJxfV2hu5yybVEaQbNttlKFNebUmWFmVZS1IkUU53tyjxLMylmcYK4MTzZSrHvpttf7-o1w3-z0vFWwLGtMaW2tvQang1grqF7VzsQ8vypH6Zlpb7ZVptep1kuNYxBhKMQ7oFe_ywOEK6BNBFzJiIW8QmvzVZV829C7b7LSV3l8zfDyLSuGxweY4xMtvOIhinzSEKgmsMQM4ITTogXhEzEHvbFJOexzPUcEgMnn7w_ZDan9qVMKIEBXvczHInY5X6QYupzD76hLpY7nuUz62emqs2kmjcuIWEalDnwWe-VXOtsU0jZIzSZyRuh6wXsfXlXD1_WMOn_C7WcmTTI5g2s_wBMsrN3>53331</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[AArch64][SVE] backend crash
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
jdomke
</td>
</tr>
</table>
<pre>
With LLVM13 and `clang++ -O2 -mcpu=a64fx -c b.cpp -o b.o -fopenmp` I'm getting:
```
fatal error: error in backend: Cannot select: 0x10eb51f8: v2i64 = AArch64ISD::DUPLANE64 0x10eb4eb8, Constant:i64
<0>
0x10eb4eb8: nxv2i64 = AArch64ISD::SMIN_PRED 0x111dc388, 0x10e7f4b8, 0x11065bf8
0x111dc388: nxv2i1 = AArch64ISD::PTRUE TargetConstant:i64<2>
0x11065ed0: i64 = TargetConstant<2>
0x10e7f4b8: nxv2i64 = insert_subvector undef:nxv2i64, 0x11250ef8, Constant:i64<0>
0x10e78430: nxv2i64 = undef
0x11250ef8: v2i64 = scalar_to_vector 0x10d77300
0x10d77300: i64,ch = load<(load (s64) from %ir.1284, !alias.scope !816, !noalias !793)> 0x6f434e8, 0x10e
80018, undef:i64
0x10e80018: i64 = add nuw 0x10e80220, Constant:i64<8>
0x10e80220: i64,ch = CopyFromReg 0x6f434e8, Register:i64 %126
0x10e7f7f8: i64 = Register %126
0x111dc250: i64 = Constant<8>
0x110655e0: i64 = undef
0x10e7fb38: i64 = Constant<0>
0x11065bf8: nxv2i64 = AArch64ISD::SMAX_PRED 0x111dc388, 0x112513d8, 0x111dc3f0
0x111dc388: nxv2i1 = AArch64ISD::PTRUE TargetConstant:i64<2>
0x11065ed0: i64 = TargetConstant<2>
0x112513d8: nxv2i64 = insert_subvector undef:nxv2i64, 0x1122a138, Constant:i64<0>
0x10e78430: nxv2i64 = undef
0x1122a138: v2i64 = scalar_to_vector 0x10d77508
0x10d77508: i64,ch = load<(load (s64) from %ir.1274, !alias.scope !816, !noalias !793)> 0x6f434e8, 0x1
0e80220, undef:i64
0x10e80220: i64,ch = CopyFromReg 0x6f434e8, Register:i64 %126
0x10e7f7f8: i64 = Register %126
0x110655e0: i64 = undef
0x10e7fb38: i64 = Constant<0>
0x111dc3f0: nxv2i64 = insert_subvector undef:nxv2i64, 0x10d706a0, Constant:i64<0>
0x10e78430: nxv2i64 = undef
0x10d706a0: v2i64 = scalar_to_vector 0x10d708a8
0x10d708a8: i64,ch = load<(load (s64) from %ir.956, !tbaa !133, !alias.scope !806, !noalias !809)> 0x6
f434e8, 0x10d773d0, undef:i64
0x10d773d0: i64,ch = CopyFromReg 0x6f434e8, Register:i64 %130
0x10e7f860: i64 = Register %130
0x110655e0: i64 = undef
0x10e7fb38: i64 = Constant<0>
0x10e7fb38: i64 = Constant<0>
```
With `-mcpu=a64fx+nosve` I don't get a crash. Please find the bugpoint-reduced-simplified.bc attached:
[bugpoint-reduced-simplified.zip](https://github.com/llvm/llvm-project/files/7909830/bugpoint-reduced-simplified.zip)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzNVttu2zgQ_Rr5hbDBi3V78INjO0CAtBskvexbQImUzVYWBZHKpvv1O9QllrV26qRdYAHDIjmcmcPhOdIkWvxYfFV2h25vv3wgDPFCIC_Aac6LrUev4Iemf1A03adl7bE1D-bZM5qmKJmlZYmmGgYaTTNdymJfgiO68Wi4R1tprYIIbOnhtYeXYOl-zTTjludIVpWuYEs7QKpACU-_y0K4tRUvCm2RkblMrVvAzwTLxCdZ5GZPVA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