fallback: legalize: G_VECREDUCE_AND <N x i8>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_AND <N x i8> M |
| Occurrences: | 4 in 4 configs, 1 test files, 5 more counted only |
| Snippet from: | fixed-vectors-reduction-int.827a9eaeef.ll (mutant of fixed-vectors-reduction-int.ll) @vreduce_and_v256i8 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v -O3 -code-model=medium |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define i8 @vreduce_and_v256i8(ptr %x) {
%G = getelementptr float, ptr %x, i16 0
%v = load <256 x i8>, ptr %G, align 256
%red = call i8 @llvm.vector.reduce.and.v256i8(<256 x i8> %v)
ret i8 %red
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.vector.reduce.and.v256i8(<256 x i8>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v -O3 -code-model=medium -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v -O3 -code-model=medium -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %2:_(i8) = G_VECREDUCE_AND %1:_(<256 x i8>) (in function: vreduce_and_v256i8)
warning: Instruction selection used fallback path for vreduce_and_v256i8
Occurrences (4):
| Input | Function | Config |
|---|
| fixed-vectors-reduction-int.0344bbedea.ll (mutant of fixed-vectors-reduction-int.ll) | vreduce_and_v256i8 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zvkb -O3 |
| fixed-vectors-reduction-int.5eae05ffb5.ll (mutant of fixed-vectors-reduction-int.ll) | vreduce_and_v64i8 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+xtheadba,+zve64d -O1 |
| fixed-vectors-reduction-int.827a9eaeef.ll (mutant of fixed-vectors-reduction-int.ll) | vreduce_and_v256i8 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v -O3 -code-model=medium |
| fixed-vectors-reduction-int.8eaf00b1f4.ll (mutant of fixed-vectors-reduction-int.ll) | vreduce_and_v4i8 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+zicond -O0 |
Generated 2026-11-29 14:49 UTC.