fallback: legalize: G_VECREDUCE_XOR <N x i8>
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_XOR <N x i8> M |
| Occurrences: | 3 in 3 configs, 2 test files, 3 more counted only |
| Snippet from: | fixed-vectors-reduction-int-vp.4f20a69ffe.ll (mutant of fixed-vectors-reduction-int-vp.ll) @vpreduce_xor_v2i8 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -O0 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define signext i8 @vpreduce_xor_v2i8(i8 signext %s, <2 x i8> %v, <2 x i1> %m, i32 zeroext %evl) {
%C = icmp eq <2 x i8> %v, %v
%r = call i8 @llvm.vp.reduce.xor.v2i8(i8 %s, <2 x i8> %v, <2 x i1> %C, i32 %evl)
ret i8 %r
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.vp.reduce.xor.v2i8(i8, <2 x i8>, <2 x i1>, i32) #0
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %26:_(i8) = G_VECREDUCE_XOR %23:_(<2 x i8>) (in function: vpreduce_xor_v2i8)
warning: Instruction selection used fallback path for vpreduce_xor_v2i8
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-reduction-int-vp.4f20a69ffe.ll (mutant of fixed-vectors-reduction-int-vp.ll) | vpreduce_xor_v2i8 | -mtriple=riscv32 -verify-machineinstrs -O0 |
| fixed-vectors-reduction-int.3f69d1f727.ll (mutant of fixed-vectors-reduction-int.ll) | vreduce_xor_v3i8 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zihintpause -O0 |
| fixed-vectors-reduction-int.bf39ecf6aa.ll (mutant of fixed-vectors-reduction-int.ll) | vreduce_xor_v4i8 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+zve64d -O3 |
Generated 2026-11-29 14:49 UTC.