fallback: legalize: G_VECREDUCE_XOR <N x i8>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_XOR <N x i8> M |
| Occurrences: | 3 in 3 configs, 2 test files, 7 more counted only |
| Snippet from: | fixed-vectors-reduction-int.7369cce370.ll (mutant of fixed-vectors-reduction-int.ll) @vreduce_xor_v3i8 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+zfa,+zve64d -O2 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global ptr
define i8 @vreduce_xor_v3i8(ptr %x) {
%v = load <3 x i8>, ptr %x, align 4
%red = call i8 @llvm.vector.reduce.xor.v3i8(<3 x i8> %v)
%G = getelementptr i8, ptr %x, i8 %red
store ptr %G, ptr @G, align 8
ret i8 %red
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.vector.reduce.xor.v3i8(<3 x i8>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+zfa,+zve64d -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+zfa,+zve64d -O2 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %2:_(i8) = G_VECREDUCE_XOR %1:_(<3 x i8>) (in function: vreduce_xor_v3i8)
warning: Instruction selection used fallback path for vreduce_xor_v3i8
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-reduction-int-vp.abcd3f5a13.ll (mutant of fixed-vectors-reduction-int-vp.ll) | vpreduce_xor_v4i8 | -mtriple=riscv64 -verify-machineinstrs -mattr=+d -O1 |
| fixed-vectors-reduction-int.7369cce370.ll (mutant of fixed-vectors-reduction-int.ll) | vreduce_xor_v3i8 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+zfa,+zve64d -O2 |
| fixed-vectors-reduction-int.a3cd8ea1f6.ll (mutant of fixed-vectors-reduction-int.ll) | vreduce_xor_v2i8 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m -O1 |
Generated 2026-11-29 14:49 UTC.