fallback: legalize: G_VECREDUCE_XOR <N x i1>

Run:main-db12fc36f6-20261127-110859
Kind:fallback
Category:legalize: G_VECREDUCE_XOR <N x i1> M
Occurrences:2 in 2 configs, 1 test files
Snippet from:fixed-vectors-vreductions-mask.3fdd7097b6.ll (mutant of fixed-vectors-vreductions-mask.ll) @vreduce_xor_v128i1 via llvm-extract
Config:-mtriple=riscv64 -mattr=+m,+v -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define zeroext i1 @vreduce_xor_v128i1(<128 x i1> %v) {
  %A = alloca i1, align 1
  store i1 poison, ptr %A, align 1
  %red = call i1 @llvm.vector.reduce.xor.v128i1(<128 x i1> %v)
  store i1 %red, ptr %A, align 1
  ret i1 %red
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.vector.reduce.xor.v128i1(<128 x i1>) #0

attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }

Reproduce:

llc -mtriple=riscv64 -mattr=+m,+v -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+m,+v -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %4:_(i1) = G_VECREDUCE_XOR %0:_(<128 x i1>) (in function: vreduce_xor_v128i1)
warning: Instruction selection used fallback path for vreduce_xor_v128i1

Occurrences (2):

InputFunctionConfig
fixed-vectors-vreductions-mask.3fdd7097b6.ll (mutant of fixed-vectors-vreductions-mask.ll)vreduce_xor_v128i1-mtriple=riscv64 -mattr=+m,+v -verify-machineinstrs
fixed-vectors-vreductions-mask.d5333857a7.ll (mutant of fixed-vectors-vreductions-mask.ll)vreduce_xor_v128i1-mtriple=riscv32 -mattr=+m,+v -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.