fallback: legalize: G_VECREDUCE_SMAX <N x i16>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_SMAX <N x i16> M |
| Occurrences: | 4 in 4 configs, 2 test files, 5 more counted only |
| Snippet from: | fixed-vectors-reduction-int.08239b0b3c.ll (mutant of fixed-vectors-reduction-int.ll) @vreduce_smax_v8i16 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+a,+zihintpause -O3 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define i16 @vreduce_smax_v8i16(ptr %x) {
%v = load <8 x i16>, ptr %x, align 16
%B = shl i64 9223372036854775807, 4294967296
%red = call i16 @llvm.vector.reduce.smax.v8i16(<8 x i16> %v)
store i64 %B, ptr poison, align 4
ret i16 %red
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i16 @llvm.vector.reduce.smax.v8i16(<8 x i16>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+a,+zihintpause -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+a,+zihintpause -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %5:_(i16) = G_VECREDUCE_SMAX %1:_(<8 x i16>) (in function: vreduce_smax_v8i16)
warning: Instruction selection used fallback path for vreduce_smax_v8i16
Occurrences (4):
| Input | Function | Config |
|---|
| fixed-vectors-reduction-int-vp.0b48989730.ll (mutant of fixed-vectors-reduction-int-vp.ll) | vpreduce_smax_v2i16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbs -O2 |
| fixed-vectors-reduction-int-vp.cc04aee508.ll (mutant of fixed-vectors-reduction-int-vp.ll) | vpreduce_smax_v4i16 | -mtriple=riscv32 -verify-machineinstrs -O3 |
| fixed-vectors-reduction-int.08239b0b3c.ll (mutant of fixed-vectors-reduction-int.ll) | vreduce_smax_v8i16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+a,+zihintpause -O3 |
| fixed-vectors-reduction-int.8e61083682.ll (mutant of fixed-vectors-reduction-int.ll) | vreduce_smax_v32i16 | -mtriple=riscv32 -verify-machineinstrs -O2 |
Generated 2026-11-29 14:49 UTC.