fallback: legalize: G_VECREDUCE_XOR <N x i32>

Run:main-d9924131a4-20261128-102057
Kind:fallback
Category:legalize: G_VECREDUCE_XOR <N x i32>
Occurrences:16 in 3 configs, 2 test files
Snippet from:vecreduce-xor-constant-fold.ll @test_xor_const via llvm-extract
Config:-mtriple=riscv64 -mattr=+v
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i32 @test_xor_const() {
  %r = call i32 @llvm.vector.reduce.xor.v4i32(<4 x i32> <i32 1, i32 -2, i32 4, i32 8>)
  ret i32 %r
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (16) (first 15):

InputFunctionConfig
double_reduct.llxor_i32-mtriple=riscv32 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=ilp32d -verify-machineinstrs
double_reduct.llxor_i32-mtriple=riscv64 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=lp64d -verify-machineinstrs
vecreduce-xor-constant-fold.lltest_xor_const-mtriple=riscv64 -mattr=+v
vecreduce-xor-constant-fold.lltest_xor_const_wide-mtriple=riscv64 -mattr=+v
vecreduce-xor-constant-fold.lltest_xor_nonconst-mtriple=riscv64 -mattr=+v
vecreduce-xor-constant-fold.lltest_xor_poison-mtriple=riscv64 -mattr=+v
vecreduce-xor-constant-fold.lltest_xor_undef-mtriple=riscv64 -mattr=+v
vecreduce-xor-constant-fold.0c6f745dfd.ll (mutant of vecreduce-xor-constant-fold.ll)test_xor_const-mtriple=riscv64 -mattr=+v
vecreduce-xor-constant-fold.0c6f745dfd.ll (mutant of vecreduce-xor-constant-fold.ll)test_xor_const_wide-mtriple=riscv64 -mattr=+v
vecreduce-xor-constant-fold.0c6f745dfd.ll (mutant of vecreduce-xor-constant-fold.ll)test_xor_nonconst-mtriple=riscv64 -mattr=+v
vecreduce-xor-constant-fold.3267885324.ll (mutant of vecreduce-xor-constant-fold.ll)test_xor_const_wide-mtriple=riscv64 -mattr=+v
vecreduce-xor-constant-fold.3267885324.ll (mutant of vecreduce-xor-constant-fold.ll)test_xor_nonconst-mtriple=riscv64 -mattr=+v
vecreduce-xor-constant-fold.3267885324.ll (mutant of vecreduce-xor-constant-fold.ll)test_xor_undef-mtriple=riscv64 -mattr=+v
vecreduce-xor-constant-fold.875139d5ae.ll (mutant of vecreduce-xor-constant-fold.ll)test_xor_nonconst-mtriple=riscv64 -mattr=+v
vecreduce-xor-constant-fold.875139d5ae.ll (mutant of vecreduce-xor-constant-fold.ll)test_xor_poison-mtriple=riscv64 -mattr=+v

Generated 2026-11-29 14:49 UTC.