fallback: legalize: G_INSERT_VECTOR_ELT <N x i1>
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_INSERT_VECTOR_ELT <N x i1> M |
| Occurrences: | 3 in 3 configs, 2 test files, 11 more counted only |
| Snippet from: | fixed-vectors-mask-buildvec.6d4747881b.ll (mutant of fixed-vectors-mask-buildvec.ll) @buildvec_mask_nonconst_v2i1 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+f,+zve32f -O0 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i1
define <2 x i1> @buildvec_mask_nonconst_v2i1(i1 %x, i1 %y) {
%1 = insertelement <2 x i1> poison, i1 %x, i32 0
%2 = insertelement <2 x i1> %1, i1 %y, i32 1
%B = mul i1 %y, false
store i1 %B, ptr @G, align 1
ret <2 x i1> %2
}
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+f,+zve32f -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+f,+zve32f -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %7:_(<2 x i1>) = G_INSERT_VECTOR_ELT %4:_, %1:_(i1), %8:_(i64) (in function: buildvec_mask_nonconst_v2i1)
warning: Instruction selection used fallback path for buildvec_mask_nonconst_v2i1
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-insert-i1.c395ceb76e.ll (mutant of fixed-vectors-insert-i1.ll) | insertelt_v2i1 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zicond -O3 |
| fixed-vectors-mask-buildvec.6d4747881b.ll (mutant of fixed-vectors-mask-buildvec.ll) | buildvec_mask_nonconst_v2i1 | -mtriple=riscv64 -verify-machineinstrs -mattr=+f,+zve32f -O0 |
| fixed-vectors-mask-buildvec.e055235f71.ll (mutant of fixed-vectors-mask-buildvec.ll) | buildvec_mask_optsize_nonconst_v2i1 | -mtriple=riscv64 -verify-machineinstrs -mattr=+f,+zve32f,+zfh -O0 -code-model=small |
Generated 2026-11-29 14:49 UTC.