fallback: legalize: G_VECREDUCE_XOR <N x i8>
| Run: | main-b577f07195-20261129-101839 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_XOR <N x i8> M |
| Occurrences: | 2 in 2 configs, 1 test files |
| Snippet from: | fixed-vectors-reduction-int.2ad7ea281b.ll (mutant of fixed-vectors-reduction-int.ll) @vreduce_xor_v256i8 via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+m,+v -verify-machineinstrs |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i8
@G.1 = external global i1
define i8 @vreduce_xor_v256i8(ptr %x) {
%LGV = load i8, ptr @G, align 1
%v = load <256 x i8>, ptr %x, align 256
%red = call i8 @llvm.vector.reduce.xor.v256i8(<256 x i8> %v)
%C = icmp sgt i8 %red, %LGV
store i1 %C, ptr @G.1, align 1
ret i8 %red
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.vector.reduce.xor.v256i8(<256 x i8>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -mattr=+m,+v -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+m,+v -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %4:_(i8) = G_VECREDUCE_XOR %3:_(<256 x i8>) (in function: vreduce_xor_v256i8)
warning: Instruction selection used fallback path for vreduce_xor_v256i8
Occurrences (2):
| Input | Function | Config |
|---|
| fixed-vectors-reduction-int.2ad7ea281b.ll (mutant of fixed-vectors-reduction-int.ll) | vreduce_xor_v256i8 | -mtriple=riscv32 -mattr=+m,+v -verify-machineinstrs |
| fixed-vectors-reduction-int.4160cfb831.ll (mutant of fixed-vectors-reduction-int.ll) | vreduce_xor_v256i8 | -mtriple=riscv64 -mattr=+m,+v -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.