fallback: legalize: G_VECREDUCE_SMIN <N x i1>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_SMIN <N x i1> M |
| Occurrences: | 7 in 5 configs, 2 test files, 18 more counted only |
| Snippet from: | fixed-vectors-vreductions-mask.478762f31c.ll (mutant of fixed-vectors-vreductions-mask.ll) @vreduce_smin_v32i1 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+m -O1 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.1 = external global half
define zeroext i1 @vreduce_smin_v32i1(<32 x i1> %v) {
%LGV = load half, ptr @G.1, align 2
%red = call i1 @llvm.vector.reduce.smin.v32i1(<32 x i1> %v)
%C = fcmp ole half %LGV, 4.200000e+01
store i1 %C, ptr poison, align 1
ret i1 %red
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.vector.reduce.smin.v32i1(<32 x i1>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %4:_(i1) = G_VECREDUCE_SMIN %0:_(<32 x i1>) (in function: vreduce_smin_v32i1)
warning: Instruction selection used fallback path for vreduce_smin_v32i1
Occurrences (7):
Generated 2026-11-29 14:49 UTC.