fallback: legalize: G_VECREDUCE_AND <N x i8>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_AND <N x i8> M |
| Occurrences: | 8 in 6 configs, 2 test files, 10 more counted only |
| Snippet from: | fixed-vectors-reduction-int-vp.f9c495dea8.ll (mutant of fixed-vectors-reduction-int-vp.ll) @vpreduce_and_v4i8 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+d -O3 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i32
define signext i8 @vpreduce_and_v4i8(i8 signext %s, <4 x i8> %v, <4 x i1> %m, i32 zeroext %evl) {
%LGV = load i32, ptr @G, align 4
%r = call i8 @llvm.vp.reduce.and.v4i8(i8 %s, <4 x i8> %v, <4 x i1> %m, i32 %evl)
%B = sdiv i32 42, %LGV
store i32 %B, ptr @G, align 4
ret i8 %r
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.vp.reduce.and.v4i8(i8, <4 x i8>, <4 x i1>, i32) #0
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+d -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+d -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %28:_(i8) = G_VECREDUCE_AND %25:_(<4 x i8>) (in function: vpreduce_and_v4i8)
warning: Instruction selection used fallback path for vpreduce_and_v4i8
Occurrences (8):
| Input | Function | Config |
|---|
| fixed-vectors-reduction-int-vp.0bc37bd7aa.ll (mutant of fixed-vectors-reduction-int-vp.ll) | front_ele_v4i8 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zbkb -O3 |
| fixed-vectors-reduction-int-vp.6ae8ce41f8.ll (mutant of fixed-vectors-reduction-int-vp.ll) | vpreduce_and_v2i8 | -mtriple=riscv64 -verify-machineinstrs -mattr=+a -O0 |
| fixed-vectors-reduction-int-vp.f9c495dea8.ll (mutant of fixed-vectors-reduction-int-vp.ll) | vpreduce_and_v4i8 | -mtriple=riscv64 -verify-machineinstrs -mattr=+d -O3 |
| fixed-vectors-reduction-int-vp.f9c495dea8.ll (mutant of fixed-vectors-reduction-int-vp.ll) | front_ele_v4i8 | -mtriple=riscv64 -verify-machineinstrs -mattr=+d -O3 |
| fixed-vectors-reduction-int.174ed5df5d.ll (mutant of fixed-vectors-reduction-int.ll) | vreduce_and_v64i8 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2 |
| fixed-vectors-reduction-int.45f990726b.ll (mutant of fixed-vectors-reduction-int.ll) | vreduce_and_v2i8 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+xtheadba -O1 |
| fixed-vectors-reduction-int.45f990726b.ll (mutant of fixed-vectors-reduction-int.ll) | vreduce_and_v4i8 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+xtheadba -O1 |
| fixed-vectors-reduction-int.5a21072990.ll (mutant of fixed-vectors-reduction-int.ll) | vreduce_and_v16i8 | -mtriple=riscv32 -verify-machineinstrs -O2 |
Generated 2026-11-29 14:49 UTC.