fallback: legalize: G_EXTRACT_VECTOR_ELT <N x i64~>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_EXTRACT_VECTOR_ELT <N x i64~> M |
| Occurrences: | 3 in 3 configs, 3 test files, 2 more counted only |
| Snippet from: | srem-seteq-illegal-types.e6661e4a1e.ll (mutant of srem-seteq-illegal-types.ll) @test_srem_vec via llvm-extract |
| Config: | -mtriple=riscv32 -O0 -verify-machineinstrs |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.4 = external global i32
; Function Attrs: nounwind
define void @test_srem_vec(ptr %X) #0 {
%LGV = load i32, ptr @G.4, align 4
%ld = load <3 x i33>, ptr %X, align 16
%srem = srem <3 x i33> %ld, <i33 6, i33 7, i33 -5>
%cmp = icmp ne <3 x i33> %srem, <i33 0, i33 1, i33 2>
%ext = sext <3 x i1> %cmp to <3 x i33>
store <3 x i33> %ext, ptr %X, align 16
%E = extractelement <3 x i33> %srem, i32 %LGV
store i33 %E, ptr poison, align 4
ret void
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv32 -O0 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -O0 -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %15:_(i33) = G_EXTRACT_VECTOR_ELT %8:_(<3 x i33>), %1:_(i32) (in function: test_srem_vec)
warning: Instruction selection used fallback path for test_srem_vec
Occurrences (3):
| Input | Function | Config |
|---|
| smulh.a5837ec822.ll (mutant of smulh.ll) | smulh_v2i48 | -mtriple=riscv64 -mattr=+m -O1 -verify-machineinstrs |
| srem-seteq-illegal-types.e6661e4a1e.ll (mutant of srem-seteq-illegal-types.ll) | test_srem_vec | -mtriple=riscv32 -O0 -verify-machineinstrs |
| umulh.1742d29a49.ll (mutant of umulh.ll) | umulh_v2i48 | -mtriple=riscv64 -mattr=+zfhmin -O1 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.