fallback: translate: call llvm.vector.reduce.smax.nxv1i8
| Run: | main-db12fc36f6-20261127-110859 |
| Kind: | fallback |
| Category: | translate: call llvm.vector.reduce.smax.nxv1i8 M |
| Occurrences: | 2 in 2 configs, 1 test files |
| Snippet from: | vreductions-int.d2c233ebb6.ll (mutant of vreductions-int.ll) @vreduce_smax_nxv1i8 via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+m,+v -verify-machineinstrs |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.1 = external global i8
define signext i8 @vreduce_smax_nxv1i8(<vscale x 1 x i8> %v) {
%LGV = load i8, ptr @G.1, align 1
%red = call i8 @llvm.vector.reduce.smax.nxv1i8(<vscale x 1 x i8> %v)
%B = ashr i8 -128, %LGV
store i8 %B, ptr @G.1, align 1
ret i8 %red
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.vector.reduce.smax.nxv1i8(<vscale x 1 x i8>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -mattr=+m,+v -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+m,+v -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.vector.reduce.smax.nxv1i8: ' %red = call i8 @llvm.vector.reduce.smax.nxv1i8(<vscale x 1 x i8> %v)' (in function: vreduce_smax_nxv1i8)
warning: Instruction selection used fallback path for vreduce_smax_nxv1i8
Occurrences (2):
| Input | Function | Config |
|---|
| vreductions-int.d2c233ebb6.ll (mutant of vreductions-int.ll) | vreduce_smax_nxv1i8 | -mtriple=riscv32 -mattr=+m,+v -verify-machineinstrs |
| vreductions-int.f4222180ce.ll (mutant of vreductions-int.ll) | vreduce_smax_nxv1i8 | -mtriple=riscv64 -mattr=+m,+v -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.