fallback: translate: call llvm.vp.reduce.add.nxv2i1
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: call llvm.vp.reduce.add.nxv2i1 M |
| Occurrences: | 8 in 8 configs, 1 test files, 2 more counted only |
| Snippet from: | vreductions-mask-vp.f905fb975d.ll (mutant of vreductions-mask-vp.ll) @vpreduce_add_nxv2i1 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O0 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i1
define zeroext i1 @vpreduce_add_nxv2i1(i1 zeroext %s, <vscale x 2 x i1> %v, <vscale x 2 x i1> %m, i32 zeroext %evl) {
%C = icmp sgt i128 0, 0
%r = call i1 @llvm.vp.reduce.add.nxv2i1(i1 %s, <vscale x 2 x i1> %v, <vscale x 2 x i1> %m, i32 %evl)
store i1 %C, ptr @G, align 1
ret i1 %r
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.vp.reduce.add.nxv2i1(i1, <vscale x 2 x i1>, <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 -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.vp.reduce.add.nxv2i1: ' %r = call i1 @llvm.vp.reduce.add.nxv2i1(i1 %s, <vscale x 2 x i1> %v, <vscale x 2 x i1> %m, i32 %evl)' (in function: vpreduce_add_nxv2i1)
warning: Instruction selection used fallback path for vpreduce_add_nxv2i1
Occurrences (8):
| Input | Function | Config |
|---|
| vreductions-mask-vp.2c8a56d2de.ll (mutant of vreductions-mask-vp.ll) | vpreduce_add_nxv2i1 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1 |
| vreductions-mask-vp.4d37852435.ll (mutant of vreductions-mask-vp.ll) | vpreduce_add_nxv2i1 | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zve32x,+zfh -O2 -code-model=small |
| vreductions-mask-vp.7a2029931b.ll (mutant of vreductions-mask-vp.ll) | vpreduce_add_nxv2i1 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zve64d -O1 -code-model=small |
| vreductions-mask-vp.817f18e376.ll (mutant of vreductions-mask-vp.ll) | vpreduce_add_nxv2i1 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zve32x -O0 |
| vreductions-mask-vp.822dc8edc9.ll (mutant of vreductions-mask-vp.ll) | vpreduce_add_nxv2i1 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zve64d,+zfa -O2 -code-model=medium |
| vreductions-mask-vp.918fe3b58d.ll (mutant of vreductions-mask-vp.ll) | vpreduce_add_nxv2i1 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfa,+zba -O3 |
| vreductions-mask-vp.f905fb975d.ll (mutant of vreductions-mask-vp.ll) | vpreduce_add_nxv2i1 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O0 |
| vreductions-mask-vp.fef3d3d55a.ll (mutant of vreductions-mask-vp.ll) | vpreduce_add_nxv2i1 | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zbkb -O2 |
Generated 2026-11-29 14:49 UTC.