fallback: translate: call llvm.vp.reduce.add.nxv1i8
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: call llvm.vp.reduce.add.nxv1i8 M |
| Occurrences: | 5 in 5 configs, 1 test files, 2 more counted only |
| Snippet from: | vreductions-int-vp.b80f1e7437.ll (mutant of vreductions-int-vp.ll) @vpreduce_add_nxv1i8 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define signext i8 @vpreduce_add_nxv1i8(i8 signext %s, <vscale x 1 x i8> %v, <vscale x 1 x i1> %m, i32 zeroext %evl) {
%r = call i8 @llvm.vp.reduce.add.nxv1i8(i8 %s, <vscale x 1 x i8> %v, <vscale x 1 x i1> %m, i32 %evl)
%C = icmp sgt <vscale x 1 x i8> %v, %v
store <vscale x 1 x i1> %C, ptr poison, align 1
ret i8 %r
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.vp.reduce.add.nxv1i8(i8, <vscale x 1 x i8>, <vscale x 1 x i1>, i32) #0
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.vp.reduce.add.nxv1i8: ' %r = call i8 @llvm.vp.reduce.add.nxv1i8(i8 %s, <vscale x 1 x i8> %v, <vscale x 1 x i1> %m, i32 %evl)' (in function: vpreduce_add_nxv1i8)
warning: Instruction selection used fallback path for vpreduce_add_nxv1i8
Occurrences (5):
| Input | Function | Config |
|---|
| vreductions-int-vp.b80f1e7437.ll (mutant of vreductions-int-vp.ll) | vpreduce_add_nxv1i8 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1 |
| vreductions-int-vp.c374712814.ll (mutant of vreductions-int-vp.ll) | vpreduce_add_nxv1i8 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zve32x,+zve64d -O2 |
| vreductions-int-vp.c6dae269d7.ll (mutant of vreductions-int-vp.ll) | vpreduce_add_nxv1i8 | -mtriple=riscv64 -verify-machineinstrs -mattr=+v -O3 |
| vreductions-int-vp.e4c8f00e76.ll (mutant of vreductions-int-vp.ll) | vpreduce_add_nxv1i8 | -mtriple=riscv64 -verify-machineinstrs -mattr=+v -O1 |
| vreductions-int-vp.f37c4f85f3.ll (mutant of vreductions-int-vp.ll) | vpreduce_add_nxv1i8 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O0 -code-model=small |
Generated 2026-11-29 14:49 UTC.