| Issue |
63826
|
| Summary |
[GISel] unable to legalize instruction: %4:_(<2 x s16>) = G_INSERT_VECTOR_ELT
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
vfdff
|
test: https://gcc.godbolt.org/z/e3Wq9Mdar
```
define <2 x i16> @f(i16 %a, <2 x i16> %vec) {
%vec1 = insertelement <2 x i16> %vec, i16 1, i32 0
ret <2 x i16> %vec1
}
```
* reproduce command: llc -mtriple=aarch64-eabi -global-isel=1 test_val1.ll -debug-_only_=instruction-select -stop-before=regbankselect -o - -debug-_only_=legalizer
```
Legalize Machine IR for: f
=== New Iteration ===
Legalizing: %4:_(<2 x s16>) = G_INSERT_VECTOR_ELT %1:_, %5:_(s16), %6:_(s32)
.. Unable to legalize
LLVM ERROR: unable to legalize instruction: %4:_(<2 x s16>) = G_INSERT_VECTOR_ELT %1:_, %5:_(s16), %6:_(s32) (in function: f)
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs