fallback: translate: call llvm.vp.reduce.smax.nxv2i16
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: call llvm.vp.reduce.smax.nxv2i16 M |
| Occurrences: | 8 in 8 configs, 1 test files, 3 more counted only |
| Snippet from: | vreductions-int-vp.887ab95913.ll (mutant of vreductions-int-vp.ll) @vpreduce_smax_nxv2i16 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define signext i16 @vpreduce_smax_nxv2i16(i16 signext %s, <vscale x 2 x i16> %v, <vscale x 2 x i1> %m, i32 zeroext %evl) {
%r = call i16 @llvm.vp.reduce.smax.nxv2i16(i16 %s, <vscale x 2 x i16> %v, <vscale x 2 x i1> %m, i32 %evl)
%B = sdiv i32 %evl, %evl
store i32 %B, ptr poison, align 4
ret i16 %r
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i16 @llvm.vp.reduce.smax.nxv2i16(i16, <vscale x 2 x i16>, <vscale x 2 x i1>, i32) #0
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.vp.reduce.smax.nxv2i16: ' %r = call i16 @llvm.vp.reduce.smax.nxv2i16(i16 %s, <vscale x 2 x i16> %v, <vscale x 2 x i1> %m, i32 %evl)' (in function: vpreduce_smax_nxv2i16)
warning: Instruction selection used fallback path for vpreduce_smax_nxv2i16
Occurrences (8):
| Input | Function | Config |
|---|
| vreductions-int-vp.00d61f6370.ll (mutant of vreductions-int-vp.ll) | vpreduce_smax_nxv2i16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+a -O2 |
| vreductions-int-vp.145d839e58.ll (mutant of vreductions-int-vp.ll) | vpreduce_smax_nxv2i16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zve32x,+a -O1 |
| vreductions-int-vp.887ab95913.ll (mutant of vreductions-int-vp.ll) | vpreduce_smax_nxv2i16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2 |
| vreductions-int-vp.9ecd89cf62.ll (mutant of vreductions-int-vp.ll) | vpreduce_smax_nxv2i16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zbkb -O2 |
| vreductions-int-vp.aa13137de4.ll (mutant of vreductions-int-vp.ll) | vpreduce_smax_nxv2i16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+v -O2 |
| vreductions-int-vp.c8e59c7bb0.ll (mutant of vreductions-int-vp.ll) | vpreduce_smax_nxv2i16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+v -O3 |
| vreductions-int-vp.cd2196fe99.ll (mutant of vreductions-int-vp.ll) | vpreduce_smax_nxv2i16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O3 |
| vreductions-int-vp.e2d30451b5.ll (mutant of vreductions-int-vp.ll) | vpreduce_smax_nxv2i16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zicond -O3 |
Generated 2026-11-29 14:49 UTC.